1. Gerry Whitmarsh
  2. PowerBuilder
  3. Thursday, 1 February 2018 08:43 AM UTC

Hi,

In the webcast yesterday it was stated that you can now choose the format for the images in the pdf – gif, bmp, jpg etc. Maybe I have a senior moment, but I have forgotten where these settings are! I can’t seem to find them.

Gerry.

Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 1 February 2018 09:44 AM UTC
  2. PowerBuilder
  3. # 1

Hi.

As mentioned in help file, you have to set this option in your script:

int li_ret
dw_1.Object.DataWindow.Export.PDF.Method = NativePDF!
dw_1.Object.DataWindow.Export.PDF.NativePDF.ImageFormat = '1' //JPG
li_ret = dw_1.SaveAs("c:\custom.pdf",PDF!, true)

Values allowed fo ImageFormat are: 0->BMP, 1->JPG, 2->PNG, 3->GIF.

Andreas.

Comment
  1. Gerry Whitmarsh
  2. Thursday, 1 February 2018 11:24 AM UTC
Thank you very much,



I did look in the help but couldn't find it



Gerry.

  1. Helpful
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.