Questions and Answers

Comments

Comment viewing options

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

First PDF Include - Text file not found error

Hello,
I'm trying to create my first project using PDF Include and I'm getting an error that I can't figure out. The error seems to be happening on pdf_close and is telling me it can't find document1.txt. Any ideas what I'm missing??

Error - txt was not found.Error - txt was not found.

Thanks,
John


AttachmentSize
rjh.zip441.25 KB

pdfInclude 3 and parsing forms

Hi Johnny
The error must be due to the pdf parser of pdfInclude v3 not able to parse the pdf form.
This parser does not support any pdf file as input, only generated with old software versions (like OpenOffice 3 or Acrobat 5).
On the contrary the new pdf parser of pdfInclude v5.1 has been completely rewritten and supports any pdf file as input.
If you are interested in this version please contact me.
Regards
Jice


PDFinclude failing with form fields

I've been using PDFinclude with great success, producing simple text reports in pdf format. Now I'm being asked to do it with templates and form fields.
I have a very basic pdf template, just a single sheet for identifying pallets (company name, address, order-#). I designed the form in OpenOffice, added form fields and exported as pdf.
I'm running PDFinclude under RHEL, and I used the code example shown in the PDFinclude PRO docs as a starting point. If I export it without form fields, the resulting pdf is right, everything is there from the original pdf.
If I export it using form fields, I get "No B_TT_Object record is available." and a corrupted pdf.
Has your new version corrected this? I have contacted you via messaging concerning getting the newer version, but as yet haven't received a reply.

Thank you for keeping PDFinclude going! Hope to hear from you soon.


pauldfixr's picture

Adobe Acrobat no longer supported?

I noticed a sentence in the project main page that states that << 16th of January 2011: I finally found the time to publish the last fixes and evolutions! The big news is the support for filling OpenOffice.org generated forms! Acrobat (latest versions were not supported anyway) is not needed anymore in order to create forms to be filled with PDFinclude! Among the other news, you can now rotate text at any angle, skew ans scale text. >>
Is this to say that current Adobe Acrobat versions won't work? What is the failure mode? I have a client I'm trying to implement this for, and the primary documentation is clear that Adobe Acrobat must be used to create the PDF form, and that even Distiller is part of Acrobat. The client created a new PDF Form, and I'm having no end of trouble trying to make it work. PDFInclude is not throwing any error, but it is generating a corrupt output file.

Thank you


Hi The version on the site

Hi
The version on the site is very nitpicking with the pdf templates it can read, due to the method it employs.
I do not have any Acrobat Distiller licence, so I cannot test whether newer versions will produce pdf readable by pdfInclude v3 or not. What I did back in 2011 is to fix it so that it could work with pdf files produced by OO.org.

Meanwhile I've rewritten completely the pdf parser (the code portion which reads and interprets external pdf templates); pdfInclude (starting with version 4.0) can now support any pdf file, whatever software has produced it, including itself.
If you are interested, contact me privately and I'll send you the changelog (there is much more than the pdfparser) and conditions.

Regards

JC

PS: what "failure mode"?


Project attachments missing - SOLVED

I don't see the cited attachments (documentation and sample programs). Does someone have those that they can upload here or elsewhere?

EDIT:
Never mind. I downloaded the "latest trunk" archive and found the documentation and sample programs were embedded there.


cknicker's picture

how many points per inch using PDF image functions?

I'm trying to do some layout and it seems like there are around 96 points per inch using PDF_rectangle and _line but it is not coming out exact. How many points per line are there with image layout functions?

Chris Knickerbocker
WSIPC


Encryption of PDF file

I created an encrypted PDF in windows using
RUN pdf_set_parameter(,”Encrypt”,”TRUE”).
However now I would like to do the same in Linux.
But I will not be able to use procryptlib.dll and md5.exe so what is the alternate.

I tried to do as said in the document
If you are on a *NIX OS then you will need to compile the rc4.c object into a Shared Library
I tried
gcc -o rc4 rc4.c

But it is throwing an error.
rc4.h:33: error: syntax error before "endecrypt"
rc4.h:33: warning: data definition has no type or storage class
rc4.c:133: error: conflicting types for 'endecrypt'
rc4.h:33: error: previous declaration of 'endecrypt' was here
rc4.c:133: error: conflicting types for 'endecrypt'
rc4.h:33: error: previous declaration of 'endecrypt' was here

Thank you