Using existing pdf page with image.

Project:PDF Include project
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I am using PDFInclude to generate pdf files. I have PDF templates with form fields and images. I created PDF template from word document and placed images on PDF file by TouchUp object Tool.

I wrote a program to replace form fields. My code didn't give any error. But while reading newly created PDF, I am getting error from second page (every page has image) like "Could not find the XObject named 'InvIm0'.". If I remove images from the template and load the images programmatically, every thing is working fine. Is it possible to place images in templates and replace form fields programmatically using PDF include? Can anybody help me? Please reply me as early as possible.

Thanks and Regards,
Ramesh Babu.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

Category:support request» bug report
Priority:critical» normal

Errors:

[11/03/17@11:45:14.820-0600] P-005748 T-006760 1 WS -- (Procedure: 'LoadExtGStates pdf_inc.p' Line:12035)
** "D:\LOGS\Inv-20-0.txt" was not found. (293)
[11/03/17@11:45:14.820-0600] P-005748 T-006760 1 WS -- (Procedure: 'LoadExternalXObjects pdf_inc.p' Line:11958) ** "D:\LOGS\Inv-21-0.txt" was not found. (293)

Code snippet:

RUN pdf_new IN h_PDFinc ("Spdf", cPdffile).
RUN pdf_open_PDF("Spdf","test.pdf","Inv"). /* Open Template PDF */

RUN pdf_new_page IN h_PDFinc ("Spdf").
RUN pdf_use_PDF_page("Spdf","760",1).
RUN pdf_close IN h_PDFinc ("Spdf").

Noes:

* test pdf isn't actually a template, it is just a document with an image in the upper left hand corner
* test.pdf is a document built from pdf version 1.3.
* I am just expecting pdf include to import the pdf, and spit back out the same exact thing...instead, I get a blank pdf document when I run this and an error message from adobe acrobat reader that says "Could not find the XObject 7601"

* My intended use for this would be to import this document and stamp on /overlay some extra information to it.


#2

test.pdf should have been created using openoffice.org, or Acrobat (but I do not know if all versions are supported), and preferably saved as pdf 1.4.

pdfinclude does not (yet) support pdfs generated another way (like pdfcreator, ghostscript...)

there is a new version (yet to be pyublished) with a far better support for any kind of pdfs.

meanwhile you should try again with an openoffice.org generated pdf. and use the last version (bt the way which version are you using?).


#3

Hi,

Do you know when that new version (with better support of templates) will be published?
I have big problems when using landscape templates which have been created with Acrobat PDFMaker9.0 (i've downloaded them from the net) and then exported via adobe distiller 5.0.

Other than that, pdfinclude works perfectly, but that is major problem for me.. I've allready used about 40hours to solve the problem, but still no success

I attached one file that I still haven't been able to convert properly.
This file is in its original (just dowloaded) form, haven't been distilled in any way

I have also tried to remove images from file with AdobeAcrobatX. They seem to work little better that way, but not properly though

Risto


AttachmentSize
162As_11.pdf642.23 KB