Here are the errors I get when I try to “Generate Fields From PDF” Using Fill PDF:
* warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '<' not found in E:\wamp\www\pdfform\modules\custom_modules\fillpdf\fillpdf.module on line 486.
* warning: simplexml_load_string() [function.simplexml-load-string]: java.io.FileNotFoundException: http://xx.xx.xx.xx/pdfforms/files/project1-mine. in E:\wamp\www\pdfform\modules\custom_modules\fillpdf\fillpdf.module on line 486.
* warning: simplexml_load_string() [function.simplexml-load-string]: ^ in E:\wamp\www\pdfform\modules\custom_modules\fillpdf\fillpdf.module on line 486.
* warning: Invalid argument supplied for foreach() in E:\wamp\www\pdfform\modules\custom_modules\fillpdf\fillpdf.module on line 494.
Comments
Comment #1
lefnire commentedUnder /admin/content/fillpdf > "Edit PDF", what did you put in the "URL" field? It should be looking for a pdf file, (ie mine is http://mysite.com/files/test.pdf), but in your case it seems the itext server is looking for http://xx.xx.xx.xx/pdfforms/files/project1-mine (not a pdf).
Comment #2
ggatlanta commentedThank you for your reply. However, in the "Edit PDF", what is written is this: http://xx.xx.xx.xx/pdfforms/files/project1-mine.pdf But in the error message, I get this: http://xx.xx.xx.xx/pdfforms/files/project1-mine.
To the best of my knowledge, I have no way to make the script attach the proper extension on the file. FYI, there IS a PDF file "project1-mine.pdf" in that folder.
On another note, what does the term "PDF Key" refer to in the Add Field section? "The field key from the original PDF form." I cannot find any documentation as to what it is. I assume it has something to do with security, and the help file for Acrobat 9 Pro does not mention it, nor can I find any references on the web. I am also the author of the PDF in question, and there is no security on it at this time at all.
Comment #3
lefnire commentedOk, I think I know what the problem is. The way the module works is that you specify a PDF URL, and when you try to (a) generate fields or (b) download the populated PDF, it sends a request to my itext servlet that fetches the PDF from the URL you specified, and the XFDF generated to your server.
This will only work if those files are accessible to the web, which they are not if you're developing on a local wamp (because you can't access 192.168.1.x from the world). The quick-fix is to test this against a live or development server that has a publicly accessible IP or URL (in other words, you shouldn't get this error on your live site). The long fix that I need to implement is to POST the PDF and XFDF data rather than the itext servlet fetching these remotely.
Comment #4
ggatlanta commentedT,
I don't know if this is the issue. While I don't know how file access works over the web, if I try to access http://xx.xx.xx.xx/pdfforms/files/ over the web, I get a Not Found page, however, if I access http://xx.xx.xx.xx/pdfforms/files/project1-mine.pdf, it IS accessible. If you would like the actual address for testing purposes, please write me privately.
Thanks,
Graham
Comment #5
ggatlanta commentedT,
Have you had an opportunity to look into this issue?
Graham
Comment #6
ggatlanta commentedT,
Have you had an opportunity to look into this issue?
Graham
Comment #7
lefnire commentedsorry it's been so long graham, i've been negligent :(
anyway, could you pm me the url of that pdf?
Comment #8
lefnire commentedhace mucho tiempo.
I think these were web server issues, tell me if they come up again.