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


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.


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


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.


  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


  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.