Parsing pdf form using PHP or JavaScript

Hello! How can I parse Pdf file with form to get fields position and page # of it?
For example, there are some pdf with structure like this:
<</AcroForm 23 0 R/Metadata 2 0 R/Outlines 6 0 R/Pages 9 0 R/Type/Catalog>>
endobj
19 0 obj
<</DA(/ZaDb 0 Tf 0 g)/FT/Btn/Ff 49152/Kids[18 0 R 20 0 R]/T(Language)>>
endobj
23 0 obj
<</DA(/Helv 0 Tf 0 g )/DR<</Encoding<</PDFDocEncoding 26 0 R>>/Font<</Helv 22 0 R/ZaDb 35 0 R>>/XObject<</DSz 51 0 R>>>>/Fields[19 0 R 21 0 R 39 0 R 16 0 R 17 0 R 46 0 R 47 0 R 48 0 R]/SigFlags 1>>
endobj
25 0 obj
<</BBox[0.0 0.0 72.0 20.0]/FormType 1/Length 102/Matrix[1.0 0.0 0.0 1.0 0.0 0.0]/Resources<</Font<</Helv 22 0 R>>/ProcSet[/PDF/Text]>>/Subtype/Form/Type/XObject>>stream
1 g
0 0 72 20 re
f
/Tx BMC
q
2 1 68 18 re
How can I get field position from this code using PHP or JavaScript?
Thanks.

I solve my problem using Itext Pdf Library for Java. See here: http://stackoverflow.com/questions/19066141/itext-get-field-coordinate s-from-existing-pdf

Similar Messages

  • Email or store submitted PDF form using PHP

    I'm using LiveCycle Designer 8.0. I've searched a lot but haven't seen any answers or solutions to submitting the filled out pdf form online and the pdf sending to an email without it having to use an email client on the users computer.
    I'd prefer to use php and either save to the server or directly send the pdf as an attachment using the php mail() function. Any language would be fine, I'm just experienced with php.
    If anyone would have a solution to this, I am fully capable of editing scripting to send the correct fields for my particular form. I've just not been able to find a way to store and attach in pdf format. Since the LiveCycle has the built-in function to open your default mail client, attach the pdf, and then send - isn't there some way that function could be edited to use the servers php mail feature instead?
    Any help would be greatly appreciated. The reason this has become so important is that the new systems at some doctor's offices are requiring pdf's sent in advance that save in a program that allows the use of digital pen signing (like when you sign for a fedex package) of the documents once the patient arrives. And unfortunately, still many of the patients are not going to be avid pc users and will not have an email client program like outlook set up.
    Thanks much,
    Heather

    Thank you for your answer. I completely understand how to do all the things you mention, have been able to do them - where I can't seem to understand is posting to the web server. Maybe it's just simple and I'm overthinking it. When I set a url to post to, I've been trying to use a php script, but can't get the call right to save or grab the pdf.
    Could you help me with that part? Are you meaning it that way - to post it to a script or am I over-doing it and there's a simpler way?
    I appreciate your help very much.
    Heather

  • Pass/retrieve data to PDF form using php

    Hi
    We are trying to build an application that goes like this. 
    Web based application.  Document template is uploaded.  User can open the template, fill in data, and save the form.  PHP , Mysql
    We are stuck at the stage where we need to pass some data via php into the form and then extract the filled in data from the form via php.
    Does anyone have a solution to this.
    Thanks
    Sam
    zhhealthcare

    Try googling "iText".
    iText is JAVA based, and is capable of creating and manipulating FDF data.
    For a Microsoft .net version, check out "iTextSharp", or "FDFToolkit.net"
    Hope this helps...

  • How to set a pop up calendar control in pdf  form using javascript?

    I'd like to add a pop up calendar control in a PDF form using Adobe Javascript.
    The user should be able to select a date from the calendar control.
    Awaiting a solution at  the earliest.

    Let's say I did provide you with a solution... Wouldn't that be a "third-party solution" as well?
    These tools are not compiled, you know. You have direct access to their source-code and can make sure they don't do anything else beside what they're supposed to do.

  • How to seperate current page fields in a pdf form using javascript

    Hi,
    Is that possible to seperate current page fields(textbox, Chesckbox) in a pdf form using javascript.
    I have coding to get all the fields in a pdf form. But i want to take CURRENT PAGE alone.
    Please help me out.
    Thanks and regards,
    Christy

    Hi try67,
    Thanks for your support.
    I got the result.
    Thanks and Regards,
    Christy

  • I've created a PDF form using Adobe acrobat. I created the forms from a PDF that I made using pages

    I've created a PDF form using Adobe acrobat. I created the forms from a PDF that I made using pages and word on Mac running Mountain lion. How do I allow the user of the form to insert JPEG files when filling out the form and how do I allow the user to add more fields or groups of fields as needed.

    The type of form yo're describing is possible if you create it in LiveCycle Designer. It may also be possible in Acrobat, but there are certain restrictions. The type of form is known as a dynamic XFA form. LiveCycle Designer is not available on the Mac, so you'd have to install the software on a Windows machine and learn how to create this type of form. The LiveCycle Designer forum here is a good resource for getting more help.
    Reader 11 now supports creating new pages using templates with a form that you create in Acrobat (Acroform). This requires some JavaScript programming. It also adds support for using a button to display a page from a PDF, which can be an image or anything else a PDF can be. So the user would click a button, be prompted to import a page from an existing PDF, and the button (or a different button) displays it as its icon. This would require the user to convert the image to PDF first, which is relatively easy these days (e.g., using Preview on the Mac, or Word on Mac/Windows). This too involves a bit of JavaScript programming, but it's very simple and straightforward.

  • PDF Form Using E-Mail shows same PDF

    Hi All,
    I downloaded and installed the 'TutWD_EmailInteractiveForm'.
    ("Offline Interactive PDF Form Using E-Mail" in the
    /docs/DOC-8061#47)
    I customized the readInbox method in the EmailInteractiveFormComp.
    I deleted the source of "if (message<i>.getSubject().equals("Travel Request Form"))".
    After I executed, there are 3 records in the window(ReceivedView).
    Next, I clicked the 1st row and show the 1st row's pdf.
    Then I return to the list, and click the 2nd row.
    But it shows a 1st row's pdf!
    Is there a person who became the same phenomenon?
    Please give me some ideas!!
    Regards,
    Hiromitsu

    You can submit whole PDF format as long as you enable usage rights on the PDF.
    Normally Adobe Reader users can only submit the data, XFDF, FDF, XDP, XML.
    To enable usage rights on the PDF you will need to use Adobe Acrobat Std/Pro.
    As for the PHP Script; it depends on your PHP web server capabilities.
    The script will be slightly different, if the server uses PHP Mail or PHP PEAR.
    Just attach the submission to an email and send.
    If the client is submitting the form from a standalone pdf reader app, you can also respond with a success or failure FDF \status message; otherwise, you can redirect to a success / failure URL.
    For more information and online examples:
    http://www.pdfemail.net/examples/

  • How to extract text from a PDF file using php?

    How to extract text from a PDF file using php?
    thanks
    fabio

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

  • How do I get multiple people to sign a PDF form using a Touchscreen PC?

    I have created a PDF form, using Acrobat XI Pro, to record a client training session. The form is being completed using Adobe Reader (on a Panasonic Touchbook running Windows 7), so I have extended it to allow saving and signing. On the form I have a digital signature field for each trainee (next to a text field for their name) and a digital signature field for the trainer.
    Creating a proper digital signature, signable using a password, is fine for the trainer, but the trainees will only be seen once. Often/usually they do not have email addresses so emailing for a signature, using EchoSign/DocuSign is out, but I have a touch-screen computer so should just be able to pass it round for a quick signature. Also, the form will be completed offline, with the trainer turning up on a site, not having access to the internet.
    Clicking on the signature field does not provide a way to create the handwritten signature, and although the sign tab shows EchoSign in Adobe reader, allowing you to create such a signature this is shown as disabled (I imagine because I have extended the form).
    This is the last piece to the puzzle. Any ideas?
    Thank,
    Len
    p.s. I did see a version using a flash object on ADEP 10, http://forums.adobe.com/message/3998457#3998457 but this seems a little hacky, plus I would prefer to use acrobat Pro because it does everything else I want it to do.

    I have created a PDF form, using Acrobat XI Pro, to record a client training session. The form is being completed using Adobe Reader (on a Panasonic Touchbook running Windows 7), so I have extended it to allow saving and signing. On the form I have a digital signature field for each trainee (next to a text field for their name) and a digital signature field for the trainer.
    Creating a proper digital signature, signable using a password, is fine for the trainer, but the trainees will only be seen once. Often/usually they do not have email addresses so emailing for a signature, using EchoSign/DocuSign is out, but I have a touch-screen computer so should just be able to pass it round for a quick signature. Also, the form will be completed offline, with the trainer turning up on a site, not having access to the internet.
    Clicking on the signature field does not provide a way to create the handwritten signature, and although the sign tab shows EchoSign in Adobe reader, allowing you to create such a signature this is shown as disabled (I imagine because I have extended the form).
    This is the last piece to the puzzle. Any ideas?
    Thank,
    Len
    p.s. I did see a version using a flash object on ADEP 10, http://forums.adobe.com/message/3998457#3998457 but this seems a little hacky, plus I would prefer to use acrobat Pro because it does everything else I want it to do.

  • How can recipients submit completed PDF forms using a MAC?

    We have created fillable PDF forms using LiveCycle Designer 8.0.  They include
    submit buttons that are set to submit the completed forms as PDFs.  Rights have been extended for Adobe Reader users.  They work great when the recipient is using a PC, but when they are using a MAC we have a number of problems:
    1) the Print and Submit buttons do not work
    2) when the recipient saves and e-mails the file manually, the data they entered is only visible when you click on that field
    Help!  How can our MAC recipients submit their completed form as a PDF that displays all of the data!
    Thanks!

    Thanks Niall.  This information proved really helpful in confirming the problem.  We ran some tests and the problem does seem to only occur when MAC recipients are using Preview.
    We recieved this link from Adobe, which provides a solution if you have access to all the recipients:
    http://blogs.adobe.com/pdfdevjunkie/script_to_fix_mac_osx_previewa.html
    Thanks to Niall and Paul for all your help!

  • Why can't I create Fillable PDF Forms using Adobe Acrobat X Pro and upload to Dreamweaver?

    I can create fillable PDF Forms using Adobe Acrobat X Pro. I can email them to someone using Adobe Reader (free) and they can fill them, save and email to me. But when I upload the form to Dreamweaver CS5, the form is not fillable. And yes, I saved it as a Reader Extended PDF-Enable Additional Features.

    I see no reason for this form to fail in Reader. Some questions for you.
    1. On the system with Adobe Reader, what is the system and the version of Adobe Reader?
    2. Are you viewing the PDF in a browser on the system with Reader, or in an Adobe Reader window?
    3. If it's a browser
    (a) what is the browser
    (b) if you download the file instead, and open directly in Reader, what happens?

  • Offline Interactive PDF Forms Using EMail with WebDynpro for ABAP

    These is a tutorial on implementing Offline Interactive PDF Forms using Email to both send out and receive the form back using WebDynpro for Java.
    Is it possible to implement the same using WebDynpro for ABAP, specifically receiving the forms via email server.
    Regards,
    Mark

    Hi Mark,
    Check this out :
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    Go to section :
    Send, Receive, and Process Interactive Forms via Email in SAP NetWeaver Application Server ABAP (RIG session 4A)
    and for the ABAP WebDynpro :
    SAP Interactive Forms by Adobe in Web Dynpro for ABAP (Session 3A) .
    I managed to make it work in my internal sytem.
    Goodluck.
    Cheers,
    Danny

  • I filled out a pdf form using my ipad adobe reader.  When I email/print it is blank..without answers

    I filled out a pdf form using my ipad adobe reader.  When I email/print it is blank..without answers?  Help!

    I have the same issue now with the newest update...the iOS 7 design update now wont allow edited PDF's inside of this app to print with the forms filled out...so now all the usage i have for this app is GONE...
    I am so angry...you dont have any clue how mad I am...cant email them to me or print to airprint with forms filled
    Someone please tell me there is a fix...PDF's i created with the app before the update are fine...they are all there and can be printed with forms filled but new ones dont...please say there is a fix

  • I NEED HELP! Making a flash email form using php.

    Hi, my name is Sean, I'm making a flash contact form using php for a website.
    I'm having a hard time with the php. Can some one help?
    Click here to download my source.

    Satellite A505-S6005 
    ACPI Flash BIOS version 1.40 for Satellite A500/A505 (PSAT6U/PSAT9U)
    When you execute the download file (sat6v140.exe) it decompresses into several files in the sat6v140 folder. 
    Among those, is the readme.txt attached, which explains how to create the CD.
       Burn a CD or DVD from an ISO file
    -Jerry
    Attachments:
    readme.txt ‏14 KB

  • How to generate PDF using FDF file and the PDF form template (PHP)

    Hi Folks,
    I'm really sorry that I couldn't follow all the valuable discussions going on here, regularly. I need some immediate help.
    I NEED A PHP SOLUTION. I'm able to generate FDF files using the PDF Form Template in PHP. So, I have a collection of FDF files, which seeks the PDF template, while opened and populates the template with FDF data. Now if I need to save this PDF file, I have to do it manually clicking SAVE option. But, I need to convert FDF to PDF in bulk. So, I need some PHP based solution. The PHP script takes the PDF template and the FDF file and merges them to generate a complete populated PDF file. I know it's possible, but don't know how. I've seen Adobe FDF Toolkit. But by default it doesn't show any guideline for PHP. Please help me to write this code. I'm a professional coder. I can understand your hints and tutorials. PLEASE HELP GOOD PEOPLE.

    The only reason I am responding to this post is because the poster sent me a request through the forum message system asking for my help.
    Although I did populate PDFs with FDF data generated by web forms a year or so ago, I have since abandoned that kind of solution. It was a big headache. I found it far more stable and flexible to use html, php and css to populate forms that are almost as nice looking as PDFs.
    So my advice is, if you can possibly avoid going the FDF/PDF route, you will be better off.

Maybe you are looking for

  • My computer crashed and i lost all my music in my library

    hello, can someone, anyone help me? my computer crashed and i have lost all my data. i have spent the past 48 hours putting my life back together on the computer. i have windows xp. one of the programs i lost was all my songs on my itunes. can i impo

  • Does iPhone OS 3.1 has many problems?! I heard from Apple reseller~

    I met my friend who works in an Apple Re-seller today, and he warn me not to upgrade to OS 3.1 for my iPhone 3GS. Anyone can tell me is his words true or not. Beside, I read from other sites, and the result are same, "Not to upgrade first." Should I

  • Connecting BW to EP for SSO

    Hi There All I have three R/3 backends connected to our portal using SSo and all works fine.  I got a request in to connect our BW system to EP so I duly followed the same principles that I used for connecting the R/3 systems and the tests from the p

  • How do I create sub catalogs in Perfume templates

    I am having trouble creating  sub catalogs in the BC templates Perfume shop Is the option of sub catalogs permitted in the set up the module tag that is appearing in the sidebar menu is ...... {module_cataloguelistdump,-1}

  • General ledger structure used in biw

    hi In biw for eg if we r maintaning a report for gl can any body tell me that what is the structure of genral ledgerreport regards gurkiran