Is it possible to create a PDF file from scratch

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Is it possible to create a PDF file from scratch

    Another words is possible to create a new PDF file but not from any other file format such as Microsoft doc ?
    justmehere@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Scratch and Windows file error message
      I recently purchased Photoshop 7.0 and when I load it, I get a message reading: You currently have Adobe Photoshop's primary Scatch and Windows'...
    2. Primary Scratch & Windows Primary Paging file?
      Okay, I accidentally uninstalled Adobe Photoshop the other day. So I re-installed it and now when I click on the Photoshop Icon and it starts to...
    3. PDF::Create (or alike) to create watermark for existing pdf file?
      Dear perl-ists: I tried out PDF::Create 0.01 (from cpan), and it is great. kudos, fabian. creates wonderful, clean, small valid pdf output. my...
    4. Help needed with ASP form browse for file, create link to file and insert in access database
      I have a form where a user enters their name, date etc. i also want them to be able to click on a browse button and select a file which will then...
    5. sco 505 - create windoze exe file that will create a unix disk
      Hi, I wonder if this is possible, I want to put some files on a floppy disk from my SCO unix box, then I want that disk to be converted to a file...
  3. #2

    Default Re: Is it possible to create a PDF file from scratch



    Another words is possible to create a new PDF file but not from any other
    file format such as Microsoft doc?




    Yes.
    Bernd Alheit Guest

  4. #3

    Default Re: Is it possible to create a PDF file from scratch



    Another words is possible to create a new PDF file but not from any other
    file format such as Microsoft doc?




    When I need a barebones PDF file just for testing, I use one of the latest Acrobat Pro versions and select "new page" (or something to that effect), then type "hello, world" and save it. You can even save an empty page.

    -RFH
    RamonHerrera@adobeforums.com Guest

  5. #4

    Default Re: Is it possible to create a PDF file from scratch

    Sorry I had forgotten to mention that I wish to use the SDK only. Thanks to all replies.
    justmehere@adobeforums.com Guest

  6. #5

    Default Re: Is it possible to create a PDF file from scratch

    You can read the PDF Reference and create your own program. The PDF Reference is in the Acrobat SDK.
    Bernd Alheit Guest

  7. #6

    Default Re: Is it possible to create a PDF file from scratch

    You also don't mention what part of the SDK you want to use. For example, plugins have lots of APIs that they can use to create a PDF from scratch with text, vectors and raster data. However, JavaScript and COM/.NET, can only add text to a PDF.
    Leonard_Rosenthol@adobeforums.com Guest

  8. #7

    Default Re: Is it possible to create a PDF file from scratch

    I had not decided yet but I was headed in the direction of creating a PDF using mathematics equations and mathematics symbols.
    justmehere@adobeforums.com Guest

  9. #8

    Default Re: Is it possible to create a PDF file from scratch

    From plugin APIs, yes. From the others - no.
    Leonard_Rosenthol@adobeforums.com Guest

  10. #9

    Default Re: Is it possible to create a PDF file from scratch

    justmehere : what kind of pdf do you want to end up with?
    are the math equations used to generate curves ?

    If you simply want text, lines, and curves:
    that can be done by creating the file (from scratch) following the rules in the PDF Reference.

    follow-up to Leonard for Javascript:
    do you really mean "can only add text to a pdf" ?
    I am currently looking into the JSO to add functionality within a Visual Basic (VB) program. My understanding was that I could also add lines etc. via the add annotation. I can get the VB examples to run (after correcting the file path lines), but I find there is a large gap between the general description in the JavaScript Ref and getting the right format in VB.

    Does anyone have the correct VB format to add lines or text to a pdf using the JSO ?
    thanks
    Michael_Marden@adobeforums.com Guest

  11. #10

    Default Re: Is it possible to create a PDF file from scratch

    Yes you could use the annotations to provide the functionality but this does not create a flat PDF file, so not all PDF viewers would be able to see the additions, Acrobat/Reader shouldn't have a problem.

    The JSObject is just a bridge to the JavaScript, and should be able to call the Doc level functions directly, the problem when dealing with the annotations is that you probably have to use the GetProps and SetProps methods. (see annotation in the JS Guide)

    Investigate the IAC Developer Guide documentation for more information.

    HTH

    Malky
    malkyt8@adobeforums.com Guest

  12. #11

    Default Re: Is it possible to create a PDF file from scratch

    I'm looking right now only to create algebraic equations not graphs but eventually yes I would like to be able to generate graphs.
    justmehere@adobeforums.com Guest

  13. #12

    Default Re: Is it possible to create a PDF file from scratch

    malkyt : The guides indicate you can add these functions (lines, text, etc). I intend to use Acrobat or reader.

    So what is the best way to use the JSObject. I did not see any Doc functions that correspond to drawing a line. So, via annotation or not, if anyone has some VB code to draw lines using JSObject, they would be greatly appreciated (guessing the right format can take a long time).

    justmehere: it's still not clear what you want to you.
    You have equations you want to present in a pdf?
    otherwise I'm not sure what you mean by creating the equation.
    You need a special Math-font, or you are willing to type & draw ?
    Michael_Marden@adobeforums.com Guest

  14. #13

    Default Re: Is it possible to create a PDF file from scratch

    The ONLY way to draw lines with JS would be to create a Line or PolyLine annotation. So look at the addAnnot() method.
    Leonard_Rosenthol@adobeforums.com Guest

  15. #14

    Default Re: Is it possible to create a PDF file from scratch

    I did
    that's why I'm here.
    Can you supply a VB example of addAnnot() to draw a line ?
    I know you like to send us back to the books, but getting the right format out of a general description is not always obvious.

    I got my way through the PDF-Ref for writing a pdf from scratch, but a "getting started" sample would help here. My files are essentially text & lines, so once I have those two formats, I can get back to my program,
    thanks
    Michael_Marden@adobeforums.com Guest

  16. #15

    Default Re: Is it possible to create a PDF file from scratch

    Remember that lines drawn via annotations may NOT be printed by all PDF "readers" since it's not standard content...

    I don't have a VB sample for you, sorry. I believe there is a JS sample in the SDK, however...
    Leonard_Rosenthol@adobeforums.com Guest

  17. #16

    Default Re: Is it possible to create a PDF file from scratch

    I had one more question. Is it possible to customize the Adobe plugin that gets loaded when you open a pdf file from the internet using a browser ?
    justmehere@adobeforums.com Guest

  18. #17

    Default Re: Is it possible to create a PDF file from scratch

    FWIW, you can use JavaScript (doc.flattenPages) to convert annotation appearances to regular page contents.

    George
    George Johnson Guest

  19. #18

    Default Re: Is it possible to create a PDF file from scratch

    Customize it in what way?
    Leonard_Rosenthol@adobeforums.com Guest

  20. #19

    Default Re: Is it possible to create a PDF file from scratch

    I would like to be able to users to be able to create mathematical equations and annotations from this plugin and be able to save that into a pdf file.
    justmehere@adobeforums.com Guest

  21. #20

    Default Re: Is it possible to create a PDF file from scratch

    Sure. You can write your own plugin to Acrobat that will be loaded into the browser plugin. No problem at all.

    Of course, this will ONLY work with Acrobat and NOT with only Reader.
    Leonard_Rosenthol@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139