1. Pau Haro
  2. PowerBuilder
  3. Thursday, 23 July 2020 14:47 PM UTC

Hello,

Im exporting a datawindow with the new feature of NativePDF on PB2019 R2 without using ghostscript. It works well but the images look pixelated. Someone knows how to solve this? My datawindows properties are this:

 

this.Object.DataWindow.Export.PDF.Method = NativePDF!

this.Object.DataWindow.Export.PDF.NativePDF.ImageFormat = 0

this.Object.DataWindow.Export.PDF.NativePDF.PDFStandard = 0

 

A picture where you can see how bad it looks the image:

Accepted Answer
Tobias Roth Accepted Answer Pending Moderation
  1. Thursday, 23 July 2020 19:19 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Pau,

its exactly the same issue that we have already reported too.

https://www.appeon.com/standardsupport/track/view?id=2584

I hope this will be fixed soon.

Regards,

Tobi

Comment
  1. Pau Haro
  2. Monday, 27 July 2020 07:38 AM UTC
Hi Tobias,

Thanks for letting me know this.

Regards, Pau.
  1. Helpful
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Friday, 24 July 2020 08:06 AM UTC
  2. PowerBuilder
  3. # 1

Hi Pau,

 

Can you let us know the format type of the embedded images used in your datawindow? Is it BMP?

If not, and if you are using the JPG format type, please set ImageFormat=1 and try it again.

If you are using the PNG format type, please set ImageFormat=2 and try it again.

You can refer to the following link for more details:

https://docs.appeon.com/pb2019r2/datawindow_reference/ch03s03.html#XREF_19761_Export_PDF_NativePDF_ImageFormat

BTW, can you confirm whether John’s suggestion works for you?

 "I've had great success using JPG's. Try converting the graphic to a JPG and use ImageFormat=1."

If the above info is not helpful kindly please report this problem to our ticket system:https://www.appeon.com/standardsupport/newbug so it can be properly received and tracked. 

Please also provide a sample test case when you submit it to the ticket system.

 

Regards,

Comment
  1. Pau Haro
  2. Monday, 27 July 2020 07:40 AM UTC
Hi Mark,

My Image is a PNG file and ImageFormat=2 is not working for me.

Regards
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 23 July 2020 15:57 PM UTC
  2. PowerBuilder
  3. # 2

Greetings, Pau - 

I've had great success using JPG's. Try converting the graphic to a JPG and use ImageFormat=1.

Regards, John

Comment
  1. Pau Haro
  2. Monday, 27 July 2020 07:37 AM UTC
Hi John,

It don't works for me, but thanks anyways for the reply

Regards, Pau
  1. Helpful
  1. John Fauss
  2. Monday, 27 July 2020 13:42 PM UTC
Do you have a test/sample app that uses JPG you could post? I'd very much like to see what you are trying to accomplish that does not work because, as I stated above, we experience no image quality concerns using JPG's with NativePDF when ImageFormat=1.
  1. Helpful
  1. Pau Haro
  2. Thursday, 30 July 2020 11:33 AM UTC
Hi John,

I tried to use JPG image and Image Format=1 and it works well, but I need the PNG format because all our application images are PNG files.

Regards.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 23 July 2020 15:24 PM UTC
  2. PowerBuilder
  3. # 3

Hi Pau;

  Please try setting the ImageFormat to 2 (PNG).

Regards ... Chris

Comment
  1. Pau Haro
  2. Thursday, 23 July 2020 15:37 PM UTC
Hi Chris,



Still not working with ImageFormat = 2



Thanks and regards
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 23 July 2020 15:45 PM UTC
Thanks for trying that alternate image format!

Looks like this issue has already been recorded as Ticket # 4884.
  1. Helpful
  1. Pau Haro
  2. Thursday, 23 July 2020 15:51 PM UTC
Thanks to you Chris.



Regards
  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.