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
#53008 - 02/02/16 10:12 AM Add on page??
tbradley Offline
OL Guru

Registered: 05/03/11
Posts: 147
I have a document that can be variable length. It could be one page or 118 pages. Is there a way to add a page to the end of the document (basically an insert that the customer will mail back into us). I'm sure there is, I guess the question is really how do I do it.

Top
#53012 - 02/03/16 01:22 PM Re: Add on page?? [Re: tbradley]
tbradley Offline
OL Guru

Registered: 05/03/11
Posts: 147
Any help would be appreciated!!

Top
#53013 - 02/03/16 02:00 PM Re: Add on page?? [Re: tbradley]
Sophie Offline
OL User

Registered: 03/10/04
Posts: 59
If your documents are PDF, you can use the PDF Scripting API. More specifically, the InsertFrom function.

Top
#53017 - 02/03/16 03:36 PM Re: Add on page?? [Re: tbradley]
tbradley Offline
OL Guru

Registered: 05/03/11
Posts: 147
Where do I find a pdf scripting api or an insertfrom function (not sure if you meant insertform or not, but even if you did, I see neither of those).

Top
#53019 - 02/03/16 04:48 PM Re: Add on page?? [Re: tbradley]
Sophie Offline
OL User

Registered: 03/10/04
Posts: 59
This is done using Script plugin in Workflow.

Here is a simple example:
====================
option explicit

dim MyPDF
set MyPDF = Watch.GetPDFEditObject

MyPDF.Open "target.pdf", false
MyPDF.Pages.InsertFrom "source.pdf", 1, 1, MyPDF.Count
MyPDF.Save true
MyPDF.Close

Top
#53039 - 02/08/16 11:56 AM Re: Add on page?? [Re: tbradley]
tbradley Offline
OL Guru

Registered: 05/03/11
Posts: 147
Thanks for your input. I haven't done any of this. I wouldn't even know where to start. I guess I will have to call planet press support to walk me through what to do. Thanks!

Top
#53040 - 02/08/16 12:30 PM Re: Add on page?? [Re: tbradley]
mattila Offline
OL User

Registered: 12/17/10
Posts: 53
Loc: Minnesota, USA
We do this quite a bit. We add terms and conditions to the end of contracts. Just add another sheet which would contain the information you want to put at the end of the input data.

Top
#53042 - 02/08/16 01:27 PM Re: Add on page?? [Re: mattila]
tbradley Offline
OL Guru

Registered: 05/03/11
Posts: 147
How do I make it go on as the last page? So pages 1 - X print from the page one layout and then once all of those are done (all the data coming into planet press) has printed...add this extra page. How do you do that in the document?

Top
#53055 - 02/11/16 03:11 PM Re: Add on page?? [Re: tbradley]
mattila Offline
OL User

Registered: 12/17/10
Posts: 53
Loc: Minnesota, USA
Option 1.
On the page you want to appear at the end, put =&eojob on the Page Condition.


Option 2.
You could also have the last page as a separate pdf saved in folder Y. DataCapture your "live" data file. Create a pdf if the original isn't a pdf. Send to folder X. DataCapture the last page from folder Y, and Send to folder X and folder Z.

The MergePDF files (Plug in bar --> Inputs) from directory X, and email, archive or print.

Final data Capture of Z and Send to folder Y. Thus you attachment, is available for the next file.


Edited by mattila (02/11/16 03:12 PM)

Top