IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#49026 - 08/14/14 12:34 PM Defining PDF page number
a.a.c Offline
OL Newbie

Registered: 03/08/12
Posts: 11
Hello,

I want to change the order of which PDF pages are output in my PlanetPress form. The input file is an XML file selecting second root. For example, i need the form to go through the XML file as normal and at the end I want to change PDF page 1 to be PDF page 3 and vice versa.

Is this possible?

Thanks,
Andy.

Top
#49034 - 08/14/14 04:24 PM Re: Defining PDF page number [Re: a.a.c]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Hi Andy,

With just PlanetPress Design, you won't be able to reorder the pages of the output pdf that you're producing, they will come in the order that they come in your XML data.

However, in PlanetPress Workflow, there are ways you could do this. The first one is using Metadata. First, you'd call a "Create Metadata" action to create Metadata for your document. Then, you can use the various Metadata tools, such as the Metadata Fields Management or the Metadata Sorter to reorder pages and data pages. Then, use a Create PDF to produce your pdf output. It will use the new Metadata file to determine the order of the pages, and the result will be a pdf file with reordered pages.

Another method would be to use a script with the PDF Api. They are a collection of tools that allows you to modify pdf files, and you could have a script after you create your pdf output to reorder the pages. I don't have an example right now, but here's the reference guide for the PDF API:

http://help.objectiflune.com/files/EN/alambicedit-api/AlambicEdit.html

There are also several examples of PDF API scripts on the newsgroup that have already been posted if you search for them, so you can use them as a starting point and go from there.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top