1. Geir Magne Vangen
  2. PowerBuilder
  3. Wednesday, 30 June 2021 06:46 AM UTC

Hi,

We have an application generating PDF documents from a RTE control, and need PDF/A as output (for long time archiving).

Any suggestions on how to generate PDF/A from RTE in Powerbuilder?

From what I can see in the documentation for TxText control, this functionality was introduced with v15, but is not an alternative using the SaveDocument function.

Currently we are using PB2017R3 (with “Built in Tx Text Control”), but have PB2019R3 in test with “Built in Tx Text Control ActivX 28.0”.

Thanks,

Geir

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 June 2021 08:16 AM UTC
  2. PowerBuilder
  3. # 1

If you have MS Word, you could copy all the RTE contents to an invisible Word instantiated oleobject and then  maybe use word's SaveAs function.

If you don't, you could pass the text to some C# DLL you'd have to write that takes care of the Saving as PDF. There's lot's of free pdf libraries. I believe Syncfusion has one, but just to get that single functionality you have to install of ton of stuff, so if possible, I'd use something else.

 

Comment
There are no comments made yet.
Geir Magne Vangen Accepted Answer Pending Moderation
  1. Wednesday, 30 June 2021 10:44 AM UTC
  2. PowerBuilder
  3. # 2

Thanks for your feedback Miguel!

 

The application is run at a number of customers, so we can’t assume MS word is available for all users. And we try to set up a solution that doesn’t need extra installation at the user side.

 

I guess the dll’s for “Built in Tx Text Control ActiveX 28.0” doesn’t contain some hidden functionality that hasn’t been made available through the SaveDocument function… This seems to be standard functionality for “Tx Text Control ActiveX 28.0”

 

Geir

Comment
  1. Miguel Leeuwe
  2. Wednesday, 30 June 2021 14:46 PM UTC
Hi Geir, I don't know of any hidden functionality.

I just received some email from Appeon with this information:

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/329-merging-pdf-files-using-podofo?ct=t%28Appeon+Newsletter+2021+-+June%29&goal=0_47b6f83fed-c41c554991-%5BLIST_EMAIL_ID%5D

Maybe it could be of any use for your case.
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 30 June 2021 14:51 PM UTC
Also beware of v28.0 having this little bug:

https://www.appeon.com/standardsupport/search/view?id=5706

and also this more serious one:

https://www.appeon.com/standardsupport/search/view?id=6067

and last but not least this one:

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

have fun with the RTE !

regards



  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 30 June 2021 13:50 PM UTC
  2. PowerBuilder
  3. # 3

Hi Geir;

  How about ... using an RT DataWindow instead of the RTE control? Then you can create the PDF from the RT DWO using the NativePDF! option and thus, achieve the PDF/A output requirement using PB's built-in features.

Food for thought.
Regards ... Chris

 

Comment
  1. Miguel Leeuwe
  2. Wednesday, 30 June 2021 14:44 PM UTC
Great idea. You could copy the text from the control to an invisible rt dw. I've never liked rt dw's since they are so buggy!
  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.