1. Paul Shue
  2. PowerBuilder
  3. Tuesday, 18 July 2023 15:00 PM UTC

I have a nested main datawindow with several nested dw's inside. One of the nested dw's is a graph that is created via a blob object inĀ its detail band.
I create a pdf (native!) using saveas. When I open the pdf the graphs shows for a second and then disappears. Using Acrobat pro (edit tool active), you can click in the space where the graph should be and get a box outline which you can drag down and the graph is there. In the main dw, I have selected the nested graph dw and right clicked and select Bring to Front. I did the same thing with the blob object on the nested dataobject but neither setting fixed the issue. I have listed powerbuilder version info at the bottom of this post. I don't think this a coding issue because I can retrieve the graph dw in the dw painter and do saverows as pdf and the behavior is the same - when you open the graphs shows but then disappears. I have attachedĀ this pdf.Ā Ā Another FYI - this same datawindow worked fine in PB10.

Ā 

Here are the blob properties:

Ā 

PB version:

Attachments (1)
Paul Shue Accepted Answer Pending Moderation
  1. Wednesday, 19 July 2023 12:04 PM UTC
  2. PowerBuilder
  3. # 1

I have the application setting to always use Native on the PDF export tab. If I change an individual dataobject to use Distill! - does that override
the application setting for that dataobject? When you do a datawindow saveas, is there a way to know if it is using native or ghostscript?Ā 

Comment
  1. Andreas Mykonios
  2. Wednesday, 19 July 2023 12:30 PM UTC
Hi.

Set <your dw control>.Object.DataWindow.Export.PDF.Method = distill! just before performing saveas.

This is the way to choose the method to use to save as pdf.

Andreas.
  1. Helpful 1
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 18 July 2023 15:11 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

In PB 10.x you would have used GhostSript and not NativePDF. Try if that (GhostScript) still works. If it does, the please create a bug ticket for the NativePDF failing.

regards.

Comment
There are no comments made yet.
Paul Shue Accepted Answer Pending Moderation
  1. Tuesday, 25 July 2023 15:28 PM UTC
  2. PowerBuilder
  3. # 3

After installing ghostscript,Ā can someone please provide detailed instructions as to what else needs to be done in order to do a datawindows saveas to pdf using the Distill! method.Ā 

Comment
  1. Miguel Leeuwe
  2. Friday, 28 July 2023 04:11 AM UTC
here are several guides to be found:

https://www.google.com/search?q=powerbuilder+install+ghostscript+config&oq=powerbuilder+install+ghostscript+config&aqs=chrome..69i57j33i160.12130j0j7&sourceid=chrome&ie=UTF-8

  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 28 July 2023 04:12 AM UTC
(let me post it also as an "answer" so the link works)
  1. Helpful
There are no comments made yet.
Paul Shue Accepted Answer Pending Moderation
  1. Thursday, 27 July 2023 15:07 PM UTC
  2. PowerBuilder
  3. # 4

UsingĀ PB21 and I have installed ghostscript 10.01.2 and setup the Sybase Datawindow PS printer. In my application object on PDF export tab, I have checked 'always use Native! PFD method for PDF export'. In the IDEĀ IĀ  open a datawindow in the painter and I have the following properties set:
I retrieve the dw and do Save Rows As PDF. In this scenario the pdf is successfully created - how can I verify that is using ghostscript (not Native!)?

Ā 

Comment
  1. Mark Goldsmith
  2. Thursday, 27 July 2023 18:29 PM UTC
Hi Paul,

I believe if you set the Application Object properties to use NativePDF! then it will use this setting regardless. That being said, if you have Adobe (reader) installed, you should be able to open the document, select properties and look at the PDF Producer field on the Description tab and confirm how it was generated. You can also use MS Edge or Chrome and look in the Document Properties section and it will show it as well.

Regards...Mark
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 28 July 2023 17:35 PM UTC
You are correct Mark ... Them the NativePDF feature is then *always used* no matter what any DW object;s PDF Export Settings are).
  1. Helpful
  1. Mark Goldsmith
  2. Saturday, 29 July 2023 23:25 PM UTC
Thanks for confirming Chris :)
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 28 July 2023 04:13 AM UTC
  2. PowerBuilder
  3. # 5

Google is your friend. Here are some guides:

Powerbuilder Install Ghostscript

regards.

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.