Add dynamic content to reader enabled PDF, maybe using metadata?

The reader enabled pdf can be annotated by several users, in a web browser.
However, when the PDF is retrieved, I want to store the users' username against the annotation/s made. The users details are only available at the time the application receives the request.
I cannot dynamically add any javascript, as this invalidates the hash applied to the PDF i.e. the javascript is classed as unmodifiable content.
I've tried adding the username as custom metadata using
i pdfDoc.getDocumentInformation().setCustomMetadataValue("currentUser", userName);
(and access it in the embedded javascript using 'this.info.currentUser')
but it seems this also invalidates the hash !!
So, my question is, how can i add the username dynamically to the PDF at request time, and access it in the embedded javascript, given that
* the available usage rights are for 'Annot.*'. (* is all available rights).
* the PDF is only reader enabled on creation (as reader enabling for large PDF files for multiple users is too slow!!)

It's hard to say without seeing a sample. If you can post one somewhere, I'd be happy to test it out. If you can't post somewhere, you can email me at: acroscript at gmail dot com

Similar Messages

  • Reader enabled PDF won't save to Word

    Hi,
    I'm sorry if I'm not putting this question in the right place, but I can't find a better location.
    We have a PDF that's reader enabled for editing with the typewriter tool, and we want to save it as a Word document.  Whenever File > Save as >  Word doc is clicked, we get a message that Acrobat has stopped working.  This is only with this particular PDF, as we've tried 'plain' ones that converted beautifully.
    How can I save the reader-enabled PDF as a plain PDF?
    Thank you!

    Thanks for replying!
    There is no 'Save a copy' in the File menu; maybe that option is just in
    Acrobat, not Reader.  I solved it, though; what I did was print to Adobe
    PDF.  As we know, that doesn't actually print anything, it just saves; and
    it was saved as a plain PDF!  Well, that was a lesson learned...and enabled
    PDF cannot be converted.
    Thanks anyways!

  • Reader Enabled PDF forms

    I have Reader Enabled PDF forms created in Acrobat 10. Is there away to NOT allow the user to save the PDF form with data UNLESS the user has completed the form in entirety. I want the user to be forced to provide all the information before they can save the form.

    Try looking or asking here: http://forums.adobe.com/community/acrobat/acrobat_scripting

  • Open file attachment from text links within reader enabled pdf document...

    I created a PDF file with embedded sub pdf documents in Adobe Acrobat Pro X.
    Then I created a link to text part (Actions: Run a JavaScript).
    The JavaScript code which is executed by clicking the link is shown below:
    var d= this.dataObjects;
    dd="abcde-123_test.pdf";
    for (var i=0; i < d.length; i++) {
    if (dd.indexOf(d[i].name)>=0) {
    odoc=openDataObject(d[i].name);
    dc=odoc.path;
    odoc.closeDoc();
    app.openDoc(dc);
    Having the PDF file without reader enabled extensions, the link works perfectly.
    After activation of reader enabled extensions and reopening it in Adobe Acrobat Pro X, the same document raises the following error:
    RaiseError: The file may be read-only, or another user may have it open. Please save the document with a dfferent name or in a different folder.
    Doc.closeDoc:7:Link undefined: Mouse Up
    ===> The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.
    Opening this reader enabled PDF document in Adobe Acrobat Reader X, the following error is displayed:
    Exception in line 7 of function top_level, script Link:Mouse Up
    The initial non-reader enabled PDF document displays the very same error message when being opend in Adobe Acrobat Reader X instead of Adobe Acrobat Pro X.
    Can someone comment on my issue?
    Many thanks!

    OK, now I changed the code as follows:
    dd="abcde-123_test.pdf"
    this.exportDataObject({cName: dd, nLaunch: 2});
    It works perfectly in Adobe Acrobat.
    Once it is saved as "Reader Enabled", again the same issue occurs:
    Exception in line 7 of function top_level, script Link: Mouse Up
    So... What to do now?
    Thanks in advance!

  • When I read a pdf document using Safari I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    When I read a pdf document using Safari on my IPad  I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    Hi snoreaustralia,
    It sounds like you just need to associate the PDF filename extension with Acrobat, rather than Preview. Please see this document from the Microsoft Help for instructions on choosing the default program for opening a particular file type (in your case, PDF): Change which programs Windows uses by default - Windows Help
    Best,
    Sara

  • Reading/writing PDF files using JAVA

    how to read/write a PDF file using java,
    while i read a pdf file using BUfferedReader class it gives a list of char. which is not readable.
    how to convert those files to readable format.?
    is there any special class for doin that.?
    plz explain..?

    is there any special class for doin that.?Yes, I'm sure Google knows a few libraries that ca do that.

  • Reader enabled PDF stamp comment with date?

    Hi All,
    Working with Adobe Reader 9.0.0.
    I have a reader extended PDF file and have used the Dynamic stamp tool to mark up as approved.
    The approved stamp won't seem to display the date and time that it was used, (as it does so well in acrobat X Pro).
    I can right click the Approved stamp and then properties to see the date/time, but the displayed stamp just says APPROVED (By (Name*) at (BLANK*))
    Anybody know of any settings that will enable the display of the date and time on an APPROVED stamp within reader 9.0.0?
    Thanks in advance.
    Knocker.

    I too would like to know how this stamp tool dating works. I'm trying to set up a custom stamp, and can't figure out the correct Javascript used to automatically update each new day. Thanks!

  • Unable to submit a Reader-enabled PDF: "This operation is not permitted"

    Hi I've looked through the forums but haven't found an answer to this particular query: I've created a simple form (text boxes, radio buttons, and a submit button which should send the entire PDF to an email address). I have tried different options:
    Reader enabled the form, then saved it and emailed a copy to a friend to test. When he clicked on "submit" he received the error "this operation is not permitted". Unfortunately I didn't ask what version of Reader he has. The form was created in Adobe Acrobat X.
    Did not reader-enable the form, but opened it with Adobe Reader XI. When I click on submit I get a "server connection error". I'm using Gmail, Chrome and Windows 7 (I went to Start > Default Programs and was able to associate "MAILTO" with Chrome, but there is no option to actively choose Gmail as my mail client). p.s. Before submitting the form I checked and my internet connection is up and running.
    I tried to submit the form from Acrobat X and I get a similar error, "Acrobat is unable to connect to your email program".
    There are no unembedded fonts or hidden objects in the PDF.
    Any help would be greatly appreciated!
    Melissa

    Submitting forms by email isn't really submitting. In my view it's a useful quick test, but not suitable for production use. For reasons you've already discovered. A particularly bad case is where a user uses GMail (or whatever) but has a WORKING email client that accepts the mail; but then it goes nowhere because they never set it up.
    Submit really means "send to a web server" (where a script written by a professional will handle the data). Like the forms on every web site.
    Web sites COULD "submit by email" too, but they don't because it isn't any good.
    (Caveat: some big companies control the email set up exactly, and it can work for them.)

  • Calculations not working in Reader Enabled PDF Form

    I created a basic Excel spreadsheet and imported it into Acrobat 11 to make a fillable form. Acrobat inserted most of the fields but I had to add some to complete the form. I went into the properties of the fields and set up the calculations using the standard Acrobat calculations. I want the product of field1, field2. When I preview the form, the calculations work. I then close the form for editing and save as reader extended PDF with more tools. When I open the pdf in reader the calculations do not work. I then researched many possibilities on the forums and even called adobe twice with no resolution. I was able to import a blank excel spreadsheet, then created three new fields with calculations and they worked in reader when I saved the form as a reader extended pdf with more tools. So my question is where does my problem originate? Is the problem with the excel spreadsheet or excel formatting ( Excel 2013)? Is the problem with Acrobat 11? When I asked the support tech at Adobe he said that he hasn't heard of this problem before. I have spent hours and hours on this, I have created new forms from scratch and even on different versions of word and acrobat. I figured these calculations should work, am I wrong? ( I have also tried using every calculation option including JavaScript). Thanks in advance for any help.

    It's hard to say without seeing a sample. If you can post one somewhere, I'd be happy to test it out. If you can't post somewhere, you can email me at: acroscript at gmail dot com

  • Acrobat won't save as a Reader Enabled PDF File

    Hello Everyone,
    I'm having troubles with creating an editable PDF.  What my goal is for this document I'm creating is that when I send this doc to others they can fill in their name and be able to import their logo into this document.  Because you can't create an image field, my work around is creating a signature field for where they can place their logo.  Anyhow, my problem is that as soon as I create the signature field in Acrobat, I cannot save it as a Reader Extended PDF, because all of the options are greyed out.  I've tried changing some of the security settings to allow for this, but its not working.  I just want someone to be able to open Adobe Reader and be able to use this signature box.  If there is anyone that can help I would really appreciate it.
    All the best!
    m2b

    Hi m2b,
    Do you sign the document before extending the features? If you do then make sure "Lock the Document after signing" checkbox is not checked. Try this:
    Clear all signature fields.
    Click on the field that you want to sign
    "Sign Document" window will appear
    In the left bottom corner this check box will appear.
    Uncheck it.
    ~Sandeep V.

  • How can I read a pdf file using an ALC process

    I have a pdf form with a schema, I want to read the pdf form in to an xml with same schema so that i can process the data  that i get from the pdf file.
    I have tried the following
         I have created an input document variable (where i ll give my pdf form as input)
    I have created an output xml variable with the same schema as the input pdf document.
    I have created a process with set value service which assign the input pdf into the xml variable(so that i ll get the data from the pdf in to xml)
    Is the above approch is correct ..
    If any one knows, please suggest an approch to read my pdf.
    Thank You

    The fact that you have used a schema merely meand that the submission of the form data will be in the format defined by the schema. Generally when you submit the form you associate an XML variable in the user step to recieve that data (this assumes that your form is setup to submit xdp data). If you associate your schema with that XML variable you will be able to expand and see teh structure of your schema when using SetValue services etc. If you are merely interested in getting what was submitted (say to validate the data against the schema) you will have to assign the inbound data to another variable and remove the outer nodes that were added for our internal purposes (xfa.datasets.data). This is done in a setValue where you woudl use an XPath expresion of xfa/datasets/data/* (meaning that all nodes below the data norde are copied to the named variable.
    Hope that helps
    Paul

  • How to read from pdf file using VB

    I have a PDF file which contains three columns, emp no, designation, contact_info. I have 10 rows in that pdf file. I want to read row by row from the pdf file and write into another text file(tab delimited) using VB.
    Could you please help me reading the pdf file?
    Thanks,
    Arindam

    Without reading it in detail, this seems to be automating a save as text function in Acrobat. This will not give you any position information.
    If you want position information without writing a plug-in, you need to use the getPageNthWord and getPageNthWordQuads methods in JavaScript.
    If you have not already done so, you will need to download the Acrobat SDK which has the documentation you need.
    Writing in C# makes even very simple things complicated; if you have a choice, consider VB.

  • Add Dynamic Content to ScrollPane

    I have created a Address Class that uses Remote Hosting to
    get addresses for site locations and creates the appropriate
    listings in a MovieClip.
    I am trying to use this class as the source for a scroll pane
    inside another movie clip.
    I get the site locations to show up in the scrollPane but
    they will not scroll.
    I believe I need to pause some how in the constructor until I
    have all the site addresses created.
    Anyone know how I would do that or know how to get the
    scrollpane to scroll.
    Thanks
    Adam
    Here are some snippets
    The container MovieClip
    import FlashCFMXApplication.AL_Addresses;
    import fl.containers.ScrollPane;
    var scrollPane:ScrollPane;
    scrollPane = new ScrollPane;
    scrollPane.scrollDrag = true;
    scrollPane.width = 270;
    scrollPane.height = 380;
    scrollPane.y = -180;
    scrollPane.source = new AL_Addresses;
    addChild(scrollPane);
    stop();
    AL_Addresses.as
    package FlashCFMXApplication{
    import flash.display.Sprite
    public class AL_Addresses extends Sprite
    import flash.display.*;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.net.Responder;
    import fl.data.DataProvider;
    import FlashCFMXApplication.ArrayCollectionDP
    private var siteTitleFormat:TextFormat;
    private var siteCityFormat:TextFormat;
    private var requestObject = new Object;
    private var getStateSites = new Responder(getSites,
    onFault);
    private var getStats = new Responder(getSiteStats, onFault);
    public var maxWidth:int;
    public var Addresses_mc = new MovieClip();
    public var getStateSites_mc:MovieClip;
    public var box:Shape = new Shape();
    public function AL_Addresses() {
    import flash.net.NetConnection;
    var myService:NetConnection;
    myService = new NetConnection();
    //set encoding to AMF0 for complex objects
    myService.objectEncoding = 0;
    myService.connect("
    http://site.com/flashservices/gateway")
    requestObject.requestType = "rs"
    requestObject.requestData = "AL";
    myService.call( "sites.functions.getStateSites" ,
    getStateSites,requestObject);
    private function getSites(result){
    siteTitleFormat = new TextFormat();
    siteTitleFormat.font = "Arial";
    siteTitleFormat.size = 13; //12
    siteTitleFormat.color = 0xBCBCBC;
    siteTitleFormat.bold = true;
    siteCityFormat = new TextFormat();
    siteCityFormat.font = "Arial";
    siteCityFormat.size = 13; //12
    siteCityFormat.color = 0xF87A04;
    siteCityFormat.bold = true;
    var myDataProvider:DataProvider;
    myDataProvider = new DataProvider();
    myDataProvider =
    ArrayCollectionDP.toDataProvider(result.SITES_RS);
    var x:int = 10;
    var y:int = 5;
    var tmp_mc:MovieClip;
    for (var i:int = 0; i <= myDataProvider.length-1; i++){
    var x_text:int = 0;
    var y_text:int = 0;
    tmp_mc = new MovieClip;
    var Name:TextField = new TextField();
    Name.width = 270;
    Name.x = x_text;
    Name.y = y_text;
    Name.text = myDataProvider.getItemAt(i).NAME;
    Name.setTextFormat(siteTitleFormat);
    tmp_mc.addChild(Name);
    y_text = y_text + 15
    var Address:TextField = new TextField();
    Address.width = 270;
    Address.x = x_text;
    Address.y = y_text;
    Address.text = myDataProvider.getItemAt(i).ADDRESS;
    Address.setTextFormat(siteTitleFormat);
    tmp_mc.addChild(Address);
    y_text = y_text + 15
    var City:TextField = new TextField();
    City.x = x_text;
    City.y = y_text;
    City.text = myDataProvider.getItemAt(i).CITY;
    City.setTextFormat(siteCityFormat);
    tmp_mc.addChild(City);
    x_text = x_text + City.textWidth + 5;
    var State:TextField = new TextField();
    State.width = 100;
    State.x = x_text;
    State.y = y_text;
    State.text = myDataProvider.getItemAt(i).STATE;
    State.setTextFormat(siteTitleFormat);
    tmp_mc.addChild(State);
    x_text = x_text + State.textWidth + 3;
    var Zip:TextField = new TextField();
    Zip.x = x_text;
    Zip.y = y_text;
    Zip.text = myDataProvider.getItemAt(i).ZIP;
    Zip.setTextFormat(siteTitleFormat);
    tmp_mc.addChild(Zip);
    tmp_mc.x = x;
    tmp_mc.y = y;
    Addresses_mc.addChild(tmp_mc);
    y = y + 120;
    getStateSites_mc.addChild(Addresses_mc);
    public function onFault( f){
    trace("There was a problem: " + f.description);
    }//class
    } //package

    I don't see it in your code anywhere, but maybe you removed
    it (or I'm just not seeing it). You should update it only after you
    have filled the scrollpane, not when you add the scrollpane to the
    stage. It is not likely the scrollpane is filled by the time these
    two lines are processed, especially if you are loading content from
    a server...
    scrollPane.source = new AL_Addresses;
    addChild(scrollPane);

  • In Acrobat X Pro, fields are not showing up when previewing or creating Reader-enabled PDF

    I have a form with many fields (217 in all). When I click "Preview" within Form Editing, I only see a small subset of the fields. If I save as a user-enabled form, that form only shows the same fields. Why aren't all of the fields showing up? Thanks!

    Never mind. I believe I figured it out. I thought that setting the form field to "Invisible" just affected whether the box would be visible to the end-user, not whether it would be fillable at all. Now that I set all of the fields as "Visible but doesn't print" all of the fields show up.

  • Need help creating Reader Enabled PDF

    Is there a restriction on creating editable PDFs for Reader when you only have the trial version of Acrobat? Despite following all instructions, when I attempt to edit the text in Reader I get a security restriction error message.

    Reader extensions allow certain things, but it depends which of the reader extending options you choose. EXACTLY what in the form triggers the message? And what is the exact form of the error message? End users can ALWAYS fill out a form, but it's the other stuff after that which can get you, like saving it or emailing it.

Maybe you are looking for