You need to be logged in to view a user's profile.
  1. JOSE WILLIAM ROMERO OLIVOS
  2. PowerBuilder
  3. Tuesday, 4 July 2023 20:03 PM UTC
Good morning, gentlemen

I am using the PDFDocument object in PB2022. However, the final size of the documents is very large. A pdf file with pdfcreator or Microsoft pdf weighs a maximum of 90k, however, with pdfdocument the file size is 526 kb and it comes out even a little more distorted.

I have even applied this property, and the file is still very large.

lpdf_doc.security.allowhighresolutionprint = false

Is there some form of compression?

Attached image.
Attachments (1)
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 6 July 2023 08:29 AM UTC
  2. PowerBuilder
  3. # 1

Native PDF has, oversize, issue from the beginning.  IMO... It's a convenience that we need not install any third party software to generate PDF.  Appeon need to concentrate on this issue in their releases...  

Comment
There are no comments made yet.
JOSE WILLIAM ROMERO OLIVOS Accepted Answer Pending Moderation
  1. Tuesday, 4 July 2023 20:44 PM UTC
  2. PowerBuilder
  3. # 2

Export.PDF.NativePDF.ImageFormat

 

(exp) An integer indicating the file format of the embedded images in the DataWindow object.

Values are:

  • 0 - (Default) BMP

  • 1 - JPG

  • 2 - PNG

The image format affects the speed of creating the PDF file and the size of the PDF file.

In the order from the fastest to the lowest: JPG, BMP, PNG

In the order from the smallest to the biggest: JPG, BMP, PNG

To support transparent background of the image, you should set the image format to PNG before exporting the image.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.