1. Kevin Thai
  2. PowerBuilder
  3. Thursday, 28 March 2024 19:43 PM UTC

Hi all,

I am having trouble figuring out why an image from a datawindow using NativePDF to create a PDF, looks fine on my local environment but low quality when it is generated in our Citrix environment. This happens for both powerclient and non-powerclient versions. The image is include pulled from the .pbr file.

The image is a .png. I also notice the size of the PDF is much smaller when generate in Citrix.

Currently using this code to generate:

dw_print.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
dw_print.Object.DataWindow.Export.PDF.Method = NativePDF!
dw_print.Object.DataWindow.Export.PDF.NativePDF.ImageFormat = '2'
dw_print.Object.DataWindow.Print.Paper.Size = 1 //1 – Letter 8 1/2 x 11 in

dw_print.Object.DataWindow.Export.PDF.NativePDF.MasterPassword = ''
dw_print.SaveAs(ls_doc, PDF!, true)

 

I have running PowerBuilder 2022 R3 Build 3289. My work environment is windows 11 and our citrix is on Windows 10.

Let me know if any more information is needed.

 

Thanks.

David Peracho Accepted Answer Pending Moderation
  1. Friday, 31 May 2024 10:26 AM UTC
  2. PowerBuilder
  3. # 1

Hi Kevin

 

In my case, the PDF is generated with hight quality when the program has direct access to the original bipmap, but if the program use the bipmap included in the PBR file (no direct acces to the bipmap path) , the bipmap quality inside PDF is very low.

 

Regards

David

 

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 29 March 2024 09:22 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

I wonder if this could be related to the printer being used in your Citrix environment.

Andreas.

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 29 March 2024 00:47 AM UTC
  2. PowerBuilder
  3. # 3

If Ronnie's response does not lead to a solution, I suggest you try using a JPG version of the image, if that is possible. I've experienced poor quality renderings with some PNG images in earlier versions of PB.

Comment
There are no comments made yet.
Ronnie Po Accepted Answer Pending Moderation
  1. Thursday, 28 March 2024 21:30 PM UTC
  2. PowerBuilder
  3. # 4

Hi Kevin,

Are you sure that the same image file is being referenced in the Citrix environment as in your local environment? How is the image file name listed in the .pbr file?

 

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