PDFinclude3.3.3 version error when pdf_use_PDF_page invalid

Posted by Nasir Jamil on 19-Jan-2017 04:44

Hi All 

I am using PDFInclude3.3.3 and I have followed these steps to load a template and fill text.

1 - created a blank document using MS Word 2013 

2 - Then used Adobe Acrobate X Pro to convert in to pdf and added few fill in fields

3 - Now I am using the following code to load 

{pdf_inc.i "THIS-PROCEDURE"} /*This runs as persistent*/

RUN pdf_new ("Spdf","NewPdfDoc.pdf").

RUN pdf_set_parameter("Spdf","Compress","TRUE").

RUN pdf_open_PDF("Spdf","D:\Dev\Objects\hc\templates\quote.pdf","PO").

RUN pdf_new_page("Spdf").

RUN pdf_use_PDF_page("Spdf","PO",1).

RUN pdf_fill_text("Spdf","cust_name","Nasir Jamil","").

RUN pdf_close("Spdf").

This give me error 

pdf_use_PDF_page invalid page# for PDF ID= PO stream=Spdf

Any idea whats wrong ? and how to fix it 

Posted by Jean-Christophe Cardot on 07-Mar-2017 07:39

Hi Nasir

I'm the maintainer for pdfInclude. Sorry I just discover your post.

pdfInclude 3.3.3 is very nitpicking for the reading of existing PDF files.

This part and many others have been rewritten in a new version (currently 5.1) which can open any PDF file.

Please contact me by private message if you are interested.

regards

Jice

All Replies

Posted by bcprogress on 20-Jan-2017 02:55

Hello Nasir,

I cannot help you on your specific questions, but my advice is to look for help on oehive.org .

There is also a post from mid 2016 on the latest releases of PDFInclude including different possibilities how to get the latest informations. It is also possible to reach "Jice", the current developer of PDFInclude, directly.

www.oehive.org/pdfinclude

cheers

Marc

Posted by Jean-Christophe Cardot on 07-Mar-2017 07:39

Hi Nasir

I'm the maintainer for pdfInclude. Sorry I just discover your post.

pdfInclude 3.3.3 is very nitpicking for the reading of existing PDF files.

This part and many others have been rewritten in a new version (currently 5.1) which can open any PDF file.

Please contact me by private message if you are interested.

regards

Jice

This thread is closed