Skip to main content
Participating Frequently
April 17, 2008
Question

how to draw in Acrobat?

  • April 17, 2008
  • 19 replies
  • 33302 views
I know this is probably not the right place for that but...
I am developing a Asp.net app that deals with PDF forms. I have learned how to do the entire javascript on PDF documents, how to submit FDF data to my Web form, how to work with that data withthe Active X FDF toolkit, and fill form fields with data coming from my app.
Good.

I need to know how do simply draw 1 line in Acrobet. Or is this not posible in acrobet?

I have a form with whioch I am working and I dont lik the design. I want to add 1 litle black line in 1 place. That black line has to be part of the form design, the drawing behind the fields, but not part of a the collection of fields.

I cant seem to figure out how to do this...

I work with acrobat 8.1.2

Thanks
    This topic has been closed for replies.

    19 replies

    _bcweed_Author
    Participating Frequently
    April 18, 2008
    So what is the solution?

    Must I reload it in photoshop and redraw on it and then reinstall my fields?

    is there any way to save the fields? I guess I could export the p[age, load it into photoshop, make the changes, export to PDF and reloadit into acrobat and do a "Page replace"....

    that could keep the fields into place...
    Participating Frequently
    April 18, 2008
    Don't use Photoshop as a PDF editor! That's a terrible choice (except
    for scanned pages, or where Photoshop was the original file).

    Remake the pages, use Replace.

    Aandi Inston
    Inspiring
    April 18, 2008
    Use the line annottion tool. But it will still be an annotaion or comment and a user will tab to it, can move it, and it may print just like any comment or or other annotation.
    _bcweed_Author
    Participating Frequently
    April 18, 2008
    I am not wanting to put this line in the page by code....
    Thats just it! I only wanna put it in manualy once and then carry on with my code to manipulate the data in the fields (which I got figured out already)
    Participant
    April 18, 2008
    How would you take a value from form fields and create/modify an object to have the dimensions shown in the form fields?

    Example two form fields:
    one has the height and other has the width, draw a box to the size specified.

    Thanks
    Inspiring
    April 18, 2008
    That is not how Acrobat works. As I mentioned the line is an annotation or note. If you want to make part of the background PDF page you will have to flatten the page before adding any fields or other annotations.

    this.flattenPages();
    _bcweed_Author
    Participating Frequently
    April 17, 2008
    Ok. thank you all. But will this put the line in the background image? as opposed to some entity that is reachable: "pickable" while viewing the form.

    I was able to draw a Rectangle with the Tools->comments & markup->rectangle tool but when viewing the form, and tabing thru all the fields.... -> It actualy Tabed thru the rectangles that I had drawn...??

    I wanna draw some lines on the background image of the form..

    Thanks all!
    Participating Frequently
    April 18, 2008
    >Ok. thank you all. But will this put the line in the background image?

    You cannot put anything onto the page itself with OLE or JavaScript,
    only apply overlays. You'd have to write a plug-in for the page
    contents (C/C++).

    Aandi Inston
    Patrick_Leckey
    Participating Frequently
    April 17, 2008
    > I need to know how do simply draw 1 line in Acrobet.<br /><br />Not sure about Acrobet but in Acrobat you could do the following:<br /><br />var lineAnnot = <Doc>.addAnnot({<br />page: 0,<br />type: "Line",<br />author: "British Columbia",<br />points: [[5, 5], [100, 100]],<br />strokeColor: color.black,<br />doCaption: false<br />});
    Inspiring
    April 17, 2008
    In ArcroForms lines are a type of annotation and may or may not print depending upon how the form was created.
    MarkWalsh
    Inspiring
    April 17, 2008
    If there is a line somewhere else in the form that matches the line you want to draw, you can select it with the Object Touch-Up Tool, copy and paste it. Then move it with the same tool to the position you want it.