1. Don Olliver
  2. PowerBuilder
  3. Tuesday, 24 September 2019 16:37 PM UTC

We have been testing the NativePDF method (using PDFlib) in PB 2019. It does a nice job of rendering datawindow visual content, but performance is relatively slow as well as CPU-intensive. 

Are either of the other rendering methods (Distill using Ghostscript or saving using XSL-FO) faster than using NativePDF? If not, can Appeon suggest another, more efficient approach?

 

Regards,

Don Olliver

Epic-Premier Insurance Solutions 

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 24 September 2019 18:09 PM UTC
  2. PowerBuilder
  3. # 1

I would not be too quick to dismiss the Native PDF support, as there are factors that can influence performance of this feature.

Each page gets written to a separate, temporary EML file in a folder unique to the user, then these are used to produce the PDF. If you are running your app on a remote server session or have numerous and/or large images, the creation of large PDF's can degrade performance.

There are also some Native PDF configuration settings that were added in a couple of PB releases after the initial release in PB2017. Have you investigated these to see if any can help performance in your case?

Perhaps others can offer some additional insights or advice as well.

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 24 September 2019 20:07 PM UTC
  2. PowerBuilder
  3. # 2

PB 2019 has a new DS/DW method SaveNativePDFToBlob which can be used to generate a PDF directly to a blob. This will make things faster if your PDF is to be saved to a table in the database.

 

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 26 September 2019 00:50 AM UTC
  2. PowerBuilder
  3. # 3

I have always used Ghostscript to create PDFs. The performance is excellent, and like all such engines, depends of the size of the PDF being created.

Ghostscript is simple, stable, portable, and fast.


JMHO,
Olan

Comment
There are no comments made yet.
Don Olliver Accepted Answer Pending Moderation
  1. Friday, 27 September 2019 15:08 PM UTC
  2. PowerBuilder
  3. # 4

Thanks Roland. We tested SaveNativePDFToBlob and found it to be 10% faster than saving as PDF. We will try using Ghostscript to see if it offers better performance.

Don

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.