Need guidance entering my own data in a PDF file

Please refer to this example:
http://www.gnupdf.org/Introduction_to_PDF
I am trying to teach myself PDF internals. My immediate objective is to save some private data in my PDF files. My data is structured as "variable/value" pairs but I chose not to save it as custom properties because of its bulk and the possibility of confusion and undesired manipulation by the end user.
The above example immediately suggests that I should use an object of "dictionary" type. Let's try to assemble the file manually:
44 0 obj
<<
  (Favorite Baseball Team) (Boston Red Sox)
  (Age) (35)
  (Planet of Birth) (Klingon)
>>
endobj
Is the above initial attempt correct? I will of course use the corresponding API to create the dictionary, but I am concerned about breaking things. Won't Acrobat get confused when it finds this foreign stuff?
TIA,
-Ramon

Hi Leonard,
Thanks for your always valuable help. FYI, my data is of a global nature. I suppose I should come up with some unique name ("MyPrivateData" or something) and place such entry in the Catalog?
This thread brings up a related topic. It is about the uniqueness of the JavaScript namespace. My PDF files are generated automatically and JavaScript code is added to them. I haven't done any tests yet, but I foresee the following problem: those generated PDF files may end up being merged with each other which brings the potential of namespace conflicts.
Let's say that the first JS-laden document has 3 pages and another one has 2 pages. I suppose there is no way to restrict it like: "this JS code applies to the first 3 pages only". As soon as the 2 documents are merged all the JS code (and worst of all: the variable and function names) applies to the 5 combined pages, correct?
There are 2 possible solutions:
- Perhaps there is a way to declare some JS code as belonging to one page only?
- Use collections. This brings a whole new layer of complexity and expense.
Thanks again,
-Ramon

Similar Messages

  • Need Help on Recovering Saved Data in a PDF File

    Hi,
    It took me several days to fill up an important immigration document in pdf format. During the time, I was able to save it and open it again with the data in the form fields.
    The motherboard of the laptop was fried the other day. All the files on the harddrive are safe. I got a usb hd enclore and copy the files off the harddrive.
    However, when I open the pdf file, the data fields are now all empty. What to do to recover the saved data fields? Is that possible?
    Thank you very much!

    Hi~
    Don't be worry, I think to use some tools to recover your  pdf file will be help.
    I used a tool last month, and it recovered the pages as well as images in one pdf file of mine.
    Follow this steps, it is very easy to repair: http://www.datanumen.com/apdfr/recovery.htm
    You can  have a try, good luck!
    Julie

  • I need to visualize a document attached on a pdf file on an iPad.  Is there any application  to do that ?

    I need to visualize a document attached on a pdf file on an iPad.  Is there any application  to do that ?

    Yes. Quite a few actually.
    Starting with Apple's own iBooks App, I also see many recomendations for Goodreader, and Adobe's own PDF Reader.  Just to name a few. Look for them in the App Store. iBooks and Adobe reade are free.  You can also search the App Store for other alternatives.
    Also for most PDF's the Mail App can open them directly.

  • How to upload data in the pdf file to the R/3 with fileupload element ?....

    Hi Experts,
    I need to upload the data in the pdf file to the R/3 with fileupload element.
    But I am not able to get the correct data(it is confusion code) in the pdf file when I debug the programe. However, I am able to get the data if the data is in the txt or excel file.
    Do you give some hint for this problem ?
    Thanks & Regards,
    Tao

    Hi, experts,
    The version of R/3 : ABAP: 10, BASIS:11.
    Best regards,
    tao

  • Merge data and a PDF file?

    Hi,
    I´m trying to render/merge data into a PDF file using FormServer (7.0) and .NET. I notice that if I use the xdp version of the pdf, FormServer will return a pdf with the merged data. However, I cannot acomplish this if instead of a xdp file document I use a pdf file (dynamic 7.0 created with livecycle designer 8).
    This works:
    String sFormPreference = "PDFForm";
    String sFormQuery = "ExpenseClaim.xdp";
    This doesn´t woks:
    String sFormPreference = "PDFForm";
    String sFormQuery = "ExpenseClaim.pdf";
    Isn´t it possible to merge data directly into a PDF using FormServer. I rather use a pdf file instead of a xdp file, because, a xdp file will need to be converted to a PDF file. Thus it will spent more time accomplishing the merge.
    Thank you

    Try using PDFMerge as the transformation.
    Chris
    Adobe Enterprise Developer Support

  • How to Extract Data from the PDF file to an internal table.

    HI friends,
    How can i Extract data from a PDF file to an internal table....
    Thanks in Advance
    Shankar

    Shankar,
    Have a look at these threads:-
    extracting the data from pdf  file to internal table in abap
    Adobe Form (data extraction error)
    Chintan

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • Need Guidance on s/w Architecture for Server PDF Creation & File Merge App

    Please send me your recommendation on how to tackle this design requirement with the correct adobe software products.  Let me know the s/w architecture you recommend too.
    My client has a microsoft office 2010 application customized via VBA which is on a windows server.  Users remote desktop connect to the server and run the application - multiple users running the application at once on the same server.
    A new software enhancement is being requested to allow users to create PDF files.  The PDF will need a customized coversheet (and if possible, a table of contents) as well as include entire existing PDFs all merged into one document.  They would like to have a pop-up file selector interface then push a button to generate the PDF.
    I understand the Acrobat library cannot be used in the server environment.  What is the Adobe solution for this; is there a way to create a custom library (dll or such) perhaps using visual studio (c#?) that references the "Adobe PDF Library" (which I understand we'd have to license)  which in turn the Office application VBA environment can add as a reference to get to the functionality needed? 
    Or - what do you receommend?
    Thanks!

    @Dan_Korn, I'll take a look at FusionPro. Thanks!
    For the Adobe solution, I think its possible to have acrobat on the server when it's hosting users in their own remote desktop. I see Adobe has a citrix-based licensing solution so this or something similar could work for us.
    http://www.adobe.com/products/eulas/pdfs/Citrix_Policy_AX_AXI_11-12-2012.pdf
    We only have a couple users of our custom ERP application that need the PDF merge/edit "button" to do their job.  LiveCycle sounds wonderful but from what I've heard it costs in the tens of thousands. (I am not able to find a price list on the Adobe site.) For a couple of users LiveCycle is overkill.
    Buying an acrobat license for all the company employees that use our custom application in the server hosted environment is out of the question. (I see the acrobat costs $450 for one seat as of today.)
    You might say why not split our custom application into two - one version that uses acrobat (for the couple of users) and one that doesn't?  But, this will burden us with the  increased costs of maintaining two custom applications and require users  to switch between applications just to push one button.
    It's never easy! 

  • How to read data from the PDF file

    Hi
    i need pdf related API details and sample program to retrive the data from the pdf.

    Did you even try looking this one up yourself? Google "java pdf" and you get plenty of results. The first one looks pretty promising, and I'm sure there is plenty of documentation with the API.

  • I need to convert few pages of a large pdf files, insert a signature then send as an email.

    Is this possible with this product?  I'm  not having much luck so far...
    What are the steps to convert pdf files in the first place?  I get them via email so do I:
    First download the whoe pdf file
    then upload it to ExportPDF,
    then convert it to Word or Excel
    then save
    then delete pages I don't need?
    I tried it and it look like a mess and I couldn't figure out how to select pages to delete....
    So I gave that up and just tried to go to the pages I need to update and the formatting gets all goofy when I try to enter info.  Font is too small, if I make the font bigger, then it gets lopped off the top or it really messes up the formatting more!
    And then I realize that the pages I work on need my signature.    Is there a way to add that? 
    Otherwise, I will be needing to do what I'm trying to avoid doing which is having to print the forms, filling them out, signing them, then scanning so to email to my recipient.  It wouldn't really be a timesaver. 
    Any advice?

    Absolutely disappointed in trying to make this work.  Wasted 3 days trying
    to use the product and ended up cancelling the order as it was more time
    consuming and error prone than just printing the pdf file out itself and
    handwriting in what I need.
    I thought this is what Adobe Export PDF is suppposed to be able to do.
    There are no tutorials on this so I signed up for it on good faith and it
    was so reasonably priced too ... boy what a let down.
    I would not recommend this particular product to anyone and I will send
    Adobe my review separately.

  • Automatic Time/date of a pdf file?

    How can I add an auto timestamp to the pdf file name?

    You need a folder level script to change the file name automatically.
    You then can call the save function from a button in your form.
    Script for Click:Event of a Save Button
    event.target.mySaveDoc(event.target);
    Folder level script
    //Date function
    function myDateString()
         return util.printd("dd.mm.yyyy"+" - "+"HH.MM.ss", new Date());
    //Save function
    var mySaveDoc = app.trustedFunction(function(doc)
         var aDocumentFileName = this.documentFileName;
         if (aDocumentFileName == "MyForm.pdf")
              app.beginPriv();
              var myPath = app.getPath("user", "documents") + "/" + "MyForm" + " - " + myDateString() + ".pdf";
              doc.saveAs(myPath);
              app.endPriv();

  • Need help to open audios attached in a PDF file

    Hello
    I just need help. I have ordered a reviewer online that has audios and texts in a pdf file. I was told to download the latest adobe reader on my computer. I have done the same thing on my ipad mini. I am not so technical with regards to these things. Therefore I need help. I can access the audios on my computer but not on my ipad.
    I want to listen to audios with scripts or texts on them so i can listen to them when i am on the go. I was also informed that these files should work in any device. How come the audios doesnt work on my ipad.
    Please help me on what to do.
    Thanks

    Audio and video are not currently support on Adobe Reader. :-<
    You need to buy a PDF reader that supports them. My suggestion is PDF Expert from Readdle ($US 9.99)

  • How to extract data from offline PDF files as batch processing

    Hello.
    I want to use Adobe Interactive forms as batch processing.
    For instances,
    1. Users download offline PDF files.
    2. Users inputs data on their local PCs.
    3. Users upload these PDF files in one folder.
    4. Program can read data form PDF files on that folder. and put data to ERP at night.
    I' d like to know how to implement a program with Java or ABAP.
    Regards.
    Koji.

    Hi,
    It's possible to do it but first be sure that the SAP system can read the directory while your program is executed in background .
    Then you have to read the content of the directory and process each file you found.
    Look at this standard ABAP object cl_gui_frontend_services , you will find method for browsing a directory and retrieve list of file .
    Afterwards you have to process each file , for this have a look at this wiki code sample i wrote for processing inbound mail with adobe interactive form, it should help you [Sample Code for processing Inbound Mail with Adobe Interactive Forms|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCodeforprocessingInboundMailwithAdobeInteractive+Forms]
    Hope this help you .
    Best regards.

  • Need javascript/VB code to open password protected PDF file by passing password in code itself.

    Hi,
    I have used PDFcreator to create the PDF file with password security
    'To create PDF file with password security
    With PDFCreator1
    .cOption("UseAutosave") = 1
    .cOption("UseAutosaveDirectory") = 1
    ' ==============
    .cOption("AutosaveDirectory") = strBackupPath '& "\" & Format(Trim(Sheets("Form16_Database").Range("A" &
    I).Value), "0#####") & "\" 'ActiveWorkbook.Path
    Debug.Print Trim(Sheets("Form16_Database").Range("A" & I).Value) & "Form16-" & Format(Trim(Sheets
    ("Form16_Database").Range("A" & I).Value), "0#####") & "-" & Format(Now(), "YYYYMMDDHHMMSS") & ".PDF"
    .cOption("AutosaveFilename") = Format(Trim(Sheets("Form16_Database").Range("B" & I).Value), "0#####") & ".PDF"
    FileName = Format(Trim(Sheets("Form16_Database").Range("B" & I).Value), "0#####") & ".PDF"
    .cOption("AutosaveFormat") = 0
    .cOptions.PDFUseSecurity = 1
    .cOption("PDFOwnerPass") = 1
    .cOption("PDFOwnerPasswordString") = "mypass"
    .cOption("PDFUserPass") = 1
    .cOption("PDFUserPasswordString") = "mypass"
    .cClearCache
    End With
    'Printing to PDF Creator
    ActiveSheet.PrintOut Copies:=1, ActivePrinter:="PDFCreator"
    'Making the system wait for the PDF creator to create the file
    Do Until PDFCreator1.cCountOfPrintjobs = 1
    DoEvents
    Sleep 1000
    Loop
    PDFCreator1.cPrinterStop = False
    Sleep 1000
    ''and To fix digital signature used below code from Acrobat SDK 8.1..
    ''VB code for fixing Digital Signature --calling jaascript file from SDK.
    Sub GetDigitalSignature(PDFFilepath As String, PDFFileName As String, PFXfile As String, Password As String, Top As Double,
    Left As Integer)
    Dim gapp As Acrobat.AcroApp
    Dim gpddoc As Acrobat.AcroPDDoc
    Dim jso As Object
    Dim FullPath As String
    Dim avDoc As CAcroAVDoc
    Dim boK As Boolean
    Dim ppklite As Object
    Set avDoc = CreateObject("AcroExch.AVDoc")
    Set gapp = CreateObject("acroexch.app")
    Set gpddoc = CreateObject("acroexch.pddoc")
    boK = avDoc.Open(PDFFilepath, PDFFileName)
    gpddoc.Open (PDFFilepath)
    Set jso = gpddoc.GetJSObject()
    jso.SetUserPassword (Password)
    jso.SetUserDigitalIDPath (PFXfile)
    jso.SetSignTop (Top)
    jso.SetSignLeft (Left)
    jso.app.execMenuItem ("ADBESDK:AddSignature")
    avDoc.Close (True)
    gapp.Exit
    End Sub
    Now i am able to create PDF with Digital signature. But We want to assign password protection too..and problem is once we fix Digital signature we can't change security.
    My problem is to pass password at the time of opening PDF for embedding signature. Password window should not prompt to the user while running VBA application.
    Can you please help me to pass password on fly when file prompt password while opening PDF file. As file need to be opened at the time of fixing signature using sdk javascript code.

    Correct, you need to encrypt then sign.
    Unfortunately, there is no way to pass a password for opening.

  • How can I add an expiration date to a pdf file?

    How can I apply an expiration date to a pdf document in Acrobat Pro X? Can this be done in Acrobat XI?

    Read this:
    http://forums.adobe.com/thread/1085319?tstart=0

Maybe you are looking for

  • Nested Classes and Static Methods

    I was perusing the Java Tutorials on Nested Classes and I came across this... [http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html|http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html] I was reading the documentation and I read

  • Modifying XML files with JDOM

    Hi: I've been trying to get up to speed with JDOM, and while it seems pretty intuitive, I've been having a problem w/ modifying XML documents. Namely, once I get a Document object from a (skeleton) XML file, do changes made to the Document object thr

  • Broken display/video mirroring

    My powerbook G4 took a tumble and now the display screen is no longer working, although everything else still seems fine. When I connect it to an external monitor screen spanning works but there is obviously little I can do. I was wondering if there

  • Using DB9 as a remote?

    Hello Everyone, I have a quick and (hopefully) simple question about DB9 controllers.  I would like to have a DB9 connect into a Leybold Turbo Controller 700.  I was told by the company that although the back of the box looked DB9, it establishes and

  • Formular and back

    Hello my problem in some sentences i have a form with one textfield now i fill the field and submit the form so i get on the result page now i use the back button of the browser so i am back on the first site in the text field still is standing what