How to programmatically add rectangle to a pdf file ?

How to programmatically add rectangle to a pdf file ?
There is several page pdfs, non-vector, black and white.
Users are color blind and have disabilities.
To train them, one adds a rectangle at a certain lower-left point and width,height specified for a page.
The idea is to give the script the page and coordinates and size of rectangle to be added programmatically. Green rectangles are acceptable as the cones are most sensitive there.
Also, additional feature to add bookmarks on the left in the order these rectangle data is provided to the script.
The script could be "hard-wired" by a list of the rectangle coodinates, and page number, pasted inside acrobat and run or entered into acrobat in some way.
Your script would help many disabled people who are distributed through out the world.
Feel free to contact me by email if you wish.
Dying Vets

P.S.
This rectangle does not have to be a full annotation rectangle which needs user,date and a lot of info.
Something minimal like this would suffice
1 0 0 RG % red for stroke color
200 300 50 75 re
As you can see that the native unit of the pdf file is the "point" having 72 in an inch.
The file dpi would be given. However, one could assume that pixel for the rectangle lower-left and width/height are given.
From the pixels and dpi, the points could be calculated if desired.

Similar Messages

  • How can I add all of my PDF files at once

    Is there any way to add all of my PDF files that are in different folder at once, kind of self search option that add the files automatically, thanks.

    I'd also really like this feature added (unless I'm just missing something that is)

  • How do I add pages to a pdf file?

    I am new to iMac.
    I am used to using Adobe Acrobat for Windows to create pdf files. In Acrobat, when you scan a page, you have the option to add the page to an existing pdf file.
    I know how to use the Scan feature on Print & Fax to create pdf files on the iMac.
    I can not figure out how to make a pdf more than one page (unless I use the document feeder to scan in a multiple pages at once.) When I use the flat bed scanner, I can not figure out how to scan another page into the same file.
    I also can not figure out how to add another page to an existing pdf file.
    It does not appear Adobe Acrobat is available for the Mac, just Adobe reader. If it was, I would just buy that.
    Does anyone know how to do these two things, or a program that can?
    Thanks,
    -Lee
    Message was edited by: Lee from Cincinnati

    Wayne of America wrote:
    That's an interesting response. I use the Adobe Creative Suite all day every day, including Acrobat Pro...
    ... without any problems. Ever.
    Without any problems? Ever?
    You mean it didn't take over your printing system and force you to use it?
    It didn't break print to PDF functionality?
    It didn't install a bunch of software you didn't want and then promptly abandon half of it?
    It doesn't report an error if you try to remove the software that Adobe disabled 4 minutes after you bought it?
    It doesn't continually ask you to register your software and continue to ask no matter how many times you register?
    It doesn't continually tell you there are Adobe RAW updates that you need to install, even though you don't use that and don't want it, and tell it to ignore.
    It doesn't report an error when you give up and tell it to install the Adobe RAW update?
    Acrobat contains features that are useful and very much needed in a desktop publishing environment.
    As do many other competing programs. Apple Preview can generate perfectly good PDFs and is more than adequate for the vast majority of users. PDFClerk can do things Acrobat could never dream of.
    I have no experience of Acrobat Reader on the Mac so I can't comment on that.
    I do, so I will comment. It is slow, bloated, and very poorly written software. It must be updated weekly due to cross-platform security flaws that are actively being exploited. Even if you do install it to use some Adobe-only feature, you may wind up having to run Acrobat in Windows because the Mac version's output is so bad.
    All of the items I've listed here are just my personal experience. If you want more, just use the Apple Discussions search feature. Unfortunately, I haven't found an adequate replacement for Photoshop, so I still have that installed. Preview, however, is much better than Adobe Reader.

  • How do I add a folder of pdf files to itunes?

    Hi. I am preparing for my Ipad arriving next week. I have over 500 pdf files arranged in folders. I am trying to add them to my itunes library so as to sync to Ibooks but when I try adding a folder, nothing happens. I can add the files individually but this is going to make it difficult to organise the files because I need quick access on request when using the files.Does anyone have any ideas please

    http://www.wondershare.com/pdf/transfer-pdf-to-ipad.htmlhttp://www.wondershare.com/pdf/transfer-pdf-to-ipad.html
    http://www.bythom.com/pdffaq.htmhttp://www.bythom.com/pdffaq.htm
    How to Transfer PDFs to an iPad
    http://www.dummies.com/how-to/content/how-to-transfer-pdfs-to-an-ipad.htmlhttp://www.dummies.com/how-to/content/how-to-transfer-pdfs-to-an-ipad.html
     Cheers, Tom

  • Pdf files - how can I add text to a pdf file

    I want to allow my Google group to fill info out on a Numbers form, but the Mac users evidently don't have Numbers. I sent it to them as a pdf file, but text can't be added to it as a pdf file. There has got to be a way. I tried using Tools - annotate - add text, but that didn't really work. Any help?

    Because you are recent switcher to OS X I'd strongly recommend bookmarking and using these links, they're designed for those that have recent made the switch and for this considing it.
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers

  • How do I add web links to PDF files

    I have a pdf file with a list of songs, and I need to add a web link to each one.
    How do I do it?
    Henry.

    Hi,
    That is not possible via CreatePDF, in createPDF you need to upload the file on your machine for convertion. For Website convertion to PDF, you would require Adobe Acrobat.
    ~Pranav

  • How can I add the attachment list pdf file context to purchase order ?

    Dear all,
           I have use services for object in ME22N to attach PDF file to purchase order,I want to know how can I add the pdf file context to purchase order when I send the purchase order to vendor.
    Thanks in advance
    Best regards,
    Merry

    hi,
    attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N ) .
    Click your Service Object button -> Create -> Create attachment 
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started. 
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.

  • How do I add text to existing PDF files using Acrobat Pro10.1?

    I upgraded to Acrobat Pro just so that I would be able to complete blank forms send to me as PDF files.  But sometimes I can edit them and sometimes I cannot.  And the "help" does mention anything as ordinary as form filling.
    FoxLuca

    Phillip,
    Thanks for letting me know.  I see that under Save as PDF there are several
    options and to I chose the "reader extended PDF" and "enable adding text to
    non-fillable forms.
    John

  • How do i add more than one pdf at a time to profile manager books

    How do I add more than one pdf at a time to profile manager books? When I browse to my pdf folder I can only select one pdf at a time. I have 500+ pdf files I need to add. Any help would be greatly appreciated.

    Bucknut wrote:
    I want to add more than one email address to my address book from an email I received. They were in the CC of the email I received. is there anyway to drag them all into an address book group all at once. I hate having to add and address and then having to find the address and then add it to a group. thanks
    no, there is no way to do that, sorry. you need to control-click on every email address one at a time and select "add to address book". if an email is in the address book already that option will not be there.

  • How do I add pages to a PDF in the iPad version of Acrobat reader

    How do I add pages to a PDF in the iPad version of Acrobat reader

    You don't.
    Adobe Reader is a reader application. You can't use it to do editing.
    If you have Adobe Acrobat on Mac or Windows, you can add pages.

  • How can I add text to a pdf

    How can I add additonal text to a saved pdf?

    Hi remax13
    You Need Adobe Acrobat to Add Text to your PDf files. Two Ways to do this.
    1. Convert your PDf to Native file like word, Excel
    2. Make Changes in the output file
    3. Convert it back to PDF
    Or
    See the below link to use the Add Text and Edit Text Tool in Acrobat.
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS2DE764BD-5706-4e3a-9360-5F2F968223AC.w.h tml

  • How to add a table to pdf file ?

    How to add a table to pdf file ?
    Not able to use the table component. Its not active.
    Any help pls
    Thanks
    Peter
    http://www.ethos.ag

    http://forum.java.sun.com/faq.jsp#format

  • How to programmatically add af:setPropertyListener to CommandImageLink

    Hi All,
    My Requirement: programmatically add af:setPropertyListener to CommandButton
    I referred this post how to programmatically add af:setPropertyListener to CommandButton and followed the following code.
    Code:
    // create a value expression
    ValueExpression vx =
    elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
    String.class);
    // set a default value if desired
    vx.setValue(elContext, clockNo);
    SetPropertyListener spl =
    new SetPropertyListener(ActionEvent.class.getName());
    spl.setFrom(clockNo);
    spl.setValueExpression("to", vx);
    // add the listener to the button
    newOpButton.addActionListener(spl);
    My Code:
    <af:commandImageLink id="editInsuraceDetLink"
    icon="/resources/images/Edit.jpg"
    iconPosition="trailing"
    rendered="#{not row.deleted}"
    action="addEndorsement"
    useWindow="true"
    inlineStyle="vertical-align:bottom;"
    partialSubmit="true"
    shortDesc="Edit"
    *actionListener="#{pageFlowScope.GetEndorsementTypeListener.execute}"*
    returnListener="#{GetEndorsementDetailsListener.execute}"
    windowEmbedStyle="window"
    windowModalityType="applicationModal"
    windowHeight="650" windowWidth="740">
    </af:commandImageLink>
    Action Listener - .GetEndorsementTypeListener.execute code:
    RichCommandImageLink a_button = (RichCommandImageLink) a_component.findComponent("editInsuraceDetLink");
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application application = fctx.getApplication();
    ELContext elContext = fctx.getELContext();
    ExpressionFactory elFactory = application.getExpressionFactory();
    ValueExpression vx = elFactory.createValueExpression(elContext, "#{pageFlowScope.controlFlowName}", String.class);
    // set a default value if desired
    //vx.setValue(elContext, clockNo);
    SetPropertyListener spl = new SetPropertyListener(ActionEvent.class.getName());
    spl.setFrom(a_target.getEndorsementFor().toString());
    spl.setValueExpression("to", vx);
    System.out.println("From= "+spl.getFrom());
    System.out.println("To= "+spl.getValueExpression("to"));
    // add the listener to the button
    a_button.addActionListener(spl);
    I got the following output.
    From= Nominee / Appointee
    To= ValueExpression[#{pageFlowScope.controlFlowName}]
    Now my Problem is: the pageFlowScope variable ControlFlowName is not set.
    And also I got a *link*: https://blogs.oracle.com/vijaymohan/entry/usage_of_setpropertylistener_and_setactionlistener
    Whats wrong with my code. Is my problem related with above *link*.
    Please suggest me how to add SetPropertyListener programmatically.
    -Thanks
    Mohanraj

    Frank,
    This works:
            // create a value expression
            ValueExpression vx =
                elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
                                                String.class);
            // set a default value if desired
            vx.setValue(elContext, clockNo);
            SetPropertyListener spl =
                new SetPropertyListener(ActionEvent.class.getName());
            spl.setFrom(clockNo);
            spl.setValueExpression("to", vx);
            // add the listener to the button
            newOpButton.addActionListener(spl);But, I am thinking you would have known about it before I posted it. I don't really know how it works, but it does.
    Can you help me reconcile between this, and what you said. Because what you said makes sense too.

  • How do you add fields to your PDF using Adobe Acrobat

    how do you add fields to your PDF using Adobe Acrobat

    Hello Sara!
    Txs for your super quick reply.
    Yes, we do have the full version  for Adobe and when I am in tools and forms, what comes next?
    See attached picture of pdf…
    If you could help me with that, that would be great (the forums do not show any results…)
    Thanks, have a great day!
    Rilana
    [private information removed by moderator]
    P Please consider the environment before printing this email

  • How to read the and Write the PDF file give me the solution

    Hi all,
    How to read the and Write the PDF file give me the solution
    My coding is
    import java.io.File;
    import com.asprise.util.pdf.PDFImageWriter;
    import com.asprise.util.pdf.PDFReader;
    import java.io.*;
    import java.io.FileOutputStream;
    public class example {
    // public example() {
         public static void main(String a[])
              try
              PDFReader reader = new PDFReader(new File("C:\\AsprisePDF-DevGuide.pdf"));
                   reader.open(); // open the file.
                   int pages = reader.getNumberOfPages();
                   for(int i=0; i < pages; i++) {
                   String text = reader.extractTextFromPage(i);
                   System.out.println("Page " + i + ": " + text);
    // perform other operations on pages.
    PDFImageWriter writer = new PDFImageWriter(new FileOutputStream("c:\\new11.pdf"));
                   writer.open();
                   writer.addImage("C:\\sam.doc");
                   writer.close();
                   System.out.println("DONE.");
    reader.close();
              catch(Exception e){System.out.println("error:"+e);
              e.printStackTrace();
    I get the pdf content then it returns the string value but ther is no option to write the string to PDF, and we only add a image file to PDF,but i want to know how to wrote the string value to PDF file,
    Please give response immtly
    i am waiting for your reply.
    thanks,
    Suresh.G

    I have some question flow
    How library to use this code.
    I try runing but have not libary.
    Please send me it'library
    Thank you very much!

Maybe you are looking for