Skip to main content
January 5, 2009
Answered

PDF Export

  • January 5, 2009
  • 2 replies
  • 594 views
Is it possible to export somehow the TextLayout XML format to PDF? Maybe a c++ library via alchemy?
This topic has been closed for replies.
Correct answer tpf70
This is not a perfect answer, but it does work.....
Let's say you are using the Pagination example, and want to get a PDF version of it.

You can use a printerdriver to print to pdf from the client.

Then to print your TextFlow, you can add your content to pages (which are Sprites) as in the Pagination example.

Create a PrintJob object, start the printjob, and choose your PDF printer driver, and in your code, add each page into the printjob.
Once all are added, send the printjob and you will have a pdf file of your TextFlow.

Your code would look something like this...

2 replies

Participating Frequently
March 4, 2009
It makes sense that, given PDF and TLF are both Adobe technologies, effort should be put into making a bridge between them without having to rely on printer drivers or other externals.

What about FXG as an interchange format?
tpf70Correct answer
Inspiring
January 10, 2009
This is not a perfect answer, but it does work.....
Let's say you are using the Pagination example, and want to get a PDF version of it.

You can use a printerdriver to print to pdf from the client.

Then to print your TextFlow, you can add your content to pages (which are Sprites) as in the Pagination example.

Create a PrintJob object, start the printjob, and choose your PDF printer driver, and in your code, add each page into the printjob.
Once all are added, send the printjob and you will have a pdf file of your TextFlow.

Your code would look something like this...