Output to Postscript using PDF Library SDK

I'm pretty sure I read that the PDF Library supports exporting to Postscript, but I'm having a hard time finding how to do that in the documentation. Can someone tell me which document (AND IT'S PAGE NUMBER) that explains how to take a PDF and convert it to Postscript using the PDF Library (not the Acrobat SDK). I'm guessing we will be working with version 8.1 unless 9.0 of the PDF Library SDK is released soon.
Let me phrase it a little in a different way since I know that some of the regulars here tend to be touchy on the wording of a question. I have a PDF and I want to use the PDF Library SDK to a Postscript version of that PDF.
Here's a picture: PDF file -> PDF Library SDK-> Postscript file
I appreciate the help.
Thanks,
JK

Hi guys. I have been trying for a few days now to produce a postscript file from a pdf within my own project using bits and pieces from the printpdf sample project. I can compile and run the sample project fine, but after I compile my project and run it I keep getting the following error:
Error code: 1, Error Message: An internal error occurred.
After pulling out most of my hair I decided to create a new project and include only the exact files that the printpdf sample includes.
I created a new console project (VS2005). I added the following preprocessor directives:
_DEBUG
WIN_ENV
WIN_PLATFORM
PRODUCT=\"HFTLibrary.h\"
WIN32
_CONSOLE
_CRT_SECURE_NO_DEPRECATE
I added the correct headers directory and the correct libs directory with the correct lib.
I added the following files that are necessary for the printpdf project to work:
Header Files:
MyPDFLibUtils.h
Source Files:
MyPDFLibApp.cpp
MyPDFLibUtils.cpp
PDFLInitCommon.c
PDFLInitHFT.c
printpdf.cpp
I haven't changed any of the files other than the input and output file.
I can compile my newly created project fine, but when I run the app a 0 byte postscript file is produced and the following error still occurs:
Error code: 1, Error Message: An internal error occurred.
It's blowing up on the following line of code:
PDFLPrintDoc(doc, &rec);
Like I said before the sample pdfprint project is able to produce the postscript file without the error and I am using the same pdf input file and output file specified as in my own project.
I'm hoping that someone has run into this before or knows what I might be doing wrong. The sample code works, but when I take that sample code and put it into a new console project and match all of the project settings it will compile but it won't run without getting that error.
Any help is appreciated.

Similar Messages

  • Queries on The Adobe PDF Library SDK

    Hi,
    I have a requirement to merge multiple PDF files to single PDF on AIX 5.3 Server. This is currently done using Itext and Java. But recently we noted that Itext doesn't compress the PDF significantly. Then we tried merging the PDF with Adobe Acrobat Writer(Adobe Standard 8) manually on Desktop (windows Vista). To our surprise the Merged PDF size was less.
    So we want to move on to Adobe SDK. Appreciate response on below queries:-
    1) Is it possible to use PDF Library SDK to Merge multiple PDF to single one via Java program.
    2) As the Program will be run in AIX 5.3 Server which is the version of PDF Library SDK I can use?
    3) Can I use PDF Library SDK on server?
    4) Is license required to create one target PDF from multiple source PDFs? I presume PDF Library SDK require license.
    5) How much is the cost involved in purchasing it. Do i have to buy whole suite as my requirement is only PDF writer?
    6) Can I get any support from Adobe for SDK related problems after the purchase of product.
    7) I have downloaded, Acrobat 9 SDK. Please suggest how to proceed for finding docs on PDF writer as folder looks ambiguous.
    Thanks,
    Anu

    Thanks lrosenth.
    Please help me with the below queries also,
    1) Advantage of LiveCycle ES over Adobe PDF Library?
    2) Can I use Adobe PDF Library on AIX system and Java?
    3) LiveCycle ES family of products :- Is it comes as single license, or can i purchase it based on my requirement of SDK (Only PDF Merge & Compresssion) ?
    4) LiveCycle ES family of products:- Will it work with Java and AIX.
    Depending on your reply i will raise license request for either LiveCycle ES / Adobe PDF Library .
    Best Regards,
    Anu

  • Where can I find CODE & DOCS for Acrobat PDF Library SDK?

    Hi,
    I had used Acrobat PDF SDK in the past but it didnt serve the purpose and we had to abort plan. THis time we are using PDF LIBRARY SDK instead. When can i find the code and documentation for it?
    The only page I see is http://www.adobe.com/devnet/pdf/library/
    So I want to study the object models, objects, functions etc, cant find it. Also is there a book you can suggest to study it. I sort of know the PDF-SDK wel, is the PDF-LIBRARY-SDK almost the same ?
    Pls direct me to the code and documentation, so I can start coding on it.

    >WHy dont you have non confusing names for the products, one is the free Acrobat PDF SDK
    No, it's the Acrobat SDK. This doesn't seem confusing at all: it's an
    SDK for automating/controlling Acrobat, just as the Windows SDK is a
    tool for working with Windows, the Photoshop SDK is a tool for working
    with Photoshop etc. "Free" isn't used in the title, because that would
    be confusing, and might suggest it can be deployed with the free Adobe
    Reader.
    Nevertheless, maybe something could improve it because there are a
    huge number of developer who assume it will work with the Reader or
    without Acrobat, despite its name.
    >and the other is Acrobat PDF LIBRARY SDK, right?
    The other is the Adobe PDF Library. It's a library from Adobe for
    working with PDF. Acrobat is not part of the name. It would be
    confusing if it were. Maybe it could be called the "non-Acrobat PDF
    Library".
    Aandi Inston

  • Cannot download PDF Library SDK

    Whenever I follow the link to download the PDF Library SDK, I get an error:
    Insufficient privileges (HTTP 403 error)
    I have registered and have a valid account, so it appears its a problem with Adobe's website. Anybody at Adobe know whats going on?

    How many non-web developers even know what a 403 is? Any link spitting out error codes, 404, 403, 500 or whatever is broken as far as I am concerned. Those codes tell me nothing about what I did wrong to cause them. What if the dev that wrote that script forgot to chmod a required file? Nothing indicates the error was my fault.
    Furthermore, if it eases your frustrations, you will notice that this is the first time I have had to post. I have used the forum for quite some time and been able to find all of my answers. I have been trying to download the SDK for a solid week now, so I resent you telling me I am too lazy to read. I did in fact read the entire page, but the paragraph you site did not indicate to me that failing to obtain a license would cause me to see a 403. I assumed the license would be required before distributing the software, I wasn't positive it was required for the download link to function.
    The fact remains, Bernd gave me all the information I required. I even admitted my mistake. There was no need for you to post with your attempt to humiliate me on a public forum. I never said "Adobe sucks", so I don't know who you were quoting.

  • Adobe's PDF Library SDK

    I'm using php for development on Windows.
    I need the php to be read and downloadable in PDF format. I found this article http://www.adobe.com/devnet/pdf/library.html#av  Will Adobe PDF library SDK will support for my requirement.
    Kindly suggest if the following queries.
    1. Can this library be used with stand-alone PHP web based applications?
    2. Where can I find examples of usage of this library?
    If not Can u suggest me the product for my requirement.
    Awaiting your response,

    Hi,
    I just want to report my experiences with hybrid extensions and CS Extension Builder 1.5 for use with InDesign CS 5.5. I can say that trying to build a hybrid extension brings a lot of frustration, because CS Extension Builder has many bugs and the documentation plus the examples from InDesign and Illustrator are only a hint one can use. At least I am happy that I must not use the hybrid extension in my project, because I could do it completely in C++.
    The "SDK Extension Toolkit" mentioned in the post seems to be what I have as "nativeapptoolkit", and it has not much in it except the PlugPlug library itself and a small sample for Photoshop.
    After several days with resolving severe problems with the help of the forum messages, I was in the end not able to receive the user defined events that were sent from the plugin to the extension, what is the preferred way of communicating between plugin and extension.
    It seems that there is still a lot of work to do for Adobe to deliver an environment that is easy to use. Another obstacle is that one has to use the installer created by CS Extension Builder to install both the plugin and the extension, what limiteds the customization of the installer.
    Wolfgang

  • Acrobat sdk and pdf library questions.

    hello everyone. i have some questions.
    is acrobat sdk can develop software without acrobat?  like pdf library sdk
    pdf library sdk and acrobat sdk can use same project?
    thank you

    This question belongs here: http://forums.adobe.com/community/acrobat/acrobat_sdk

  • Adobe PDF Library

    Hi,
    I have a Acrobat Plugin component implemented using the Acrobat SDK and now I would like to replace this SDK with the
    Adobe PDF Library SDK.  Is this option would be possible? 
    Thanks & Regards,
    Abdul Rasheed

    Depending on what features of the SDK you have used, yes it is quite possible.
    You will need to license the PDFLibrary from Datalogics (http://www.datalogics.com).
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 12 Jan 2012 19:51:39 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Adobe PDF Library
    Adobe PDF Library
    created by skrasheed<http://forums.adobe.com/people/skrasheed> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4137439#4137439

  • Page breaks in PDF library

    Hi,
    How can i provide a page break using PDF library? Whether Indesign CS4  does support page breaks for PDF generation. If the not the API, whether this is possible by creating a Indesign template with page breaks for the data to fit in? Also whether Adobe PDF supports page breaks? Please shed some light into this.
    Thanks,
    Rithu

    I Just checked through a few old documents. It appears that numbers used to export PDF files with page breaks and the last update scrapped this in favour of redicusously large one page files.
    Is it really that hard to give an option as to how to export a file?

  • Create pdf using Adobe acrobat sdk

    Hello,
    I'm new to this concept of using adobe sdk to convert a html into pdf.I would like to know few details regarding this..
    I went thorugh the documentation but I did not get any help about the vector image support in the pdf and I aslo want to know abot the dpi support in the pdf.
    I also want to know wether I can create a pdf form a Html page.
    thanks for the help.

    >I want this to be on the server.
    Ok, we can start there - or stop. The Acrobat SDK is for automating
    Acrobat. Acrobat must not be installed on a server. So you cannot use
    Acrobat.
    Adobe have a PDF Library, which can be licensed for server use. But it
    does not have any easy HTML to PDF converter.
    You might look into LiveCycle PDF Generator, a different application
    with a Java API and more, for server use.
    >The dpi what I was talking about was..in the pdf i want a logo to appear that would around 200-300 dpi.That logo is a vector image.
    This seems a contradiction. PDF files can store text, vector images
    and bitmaps/images. If you store a vector image, it remains vector and
    there is no dpi to worry about.
    HOWEVER if you can only convert HTML
    1. HTML does not support any vector formats
    2. HTML often forces images to 72 dpi.
    HTML is not suitable for print quality.
    Aandi Inston

  • How to Extract Paragraph from Pdf using Adobe Pdf Library in C# or Java

    By Using This library I extracted Content of Pdf File.
    I got Content Line by Line(by using Last wordOnline )
    <Line> Content </Line>
    But I want to Extract Content Paragraph by Paragraph Like
    <Paragrph> Content </paragraph>

    Thanks for reply.
    Here I have used "Y" co -ordinate of line to find paragraph.But I can not get expected Output.
    Can you please explain me the logic of Find paragraph usnig Co-ordinates.?
    Here I am pasting my Code.
                    double PreY2=0;
                    double   Result2=0;
                    foreach (DataRow oRow in dtLineMaster.Rows)
                              double Result1 = Math.Round(PreY2 - Convert.ToDouble(oRow["Y2"].ToString()));
                         if (Result1 > Result2)
                            MessageBox.Show("" + oRow["LineText"].ToString());
                            Result2 = Result1;
                    PreY2 = Convert.ToDouble(oRow["Y2"].ToString());
    I have already extracted Pdf file in databse with lineId and X and Y co-ordinates.On this I am  implementing above code.

  • How to process (populate & merge) XFA PDF Forms using Adobe library in Java

    We have the XFA Forms (.pdf) created in Adobe LiveCycle designer 8.2 ES. We have the following requirement :
    1. We need to populate data in those forms using standalone Java programs.
    2. We need to merge the populated forms and create a single PDF out of these forms, using standalone Java programs.
    Can both of these be done using Adobe PDF Library or Acrobat SDK?
    What is the difference between Adobe PDF Library or Acrobat SDK?
    We already have the licensed version of Adobe Acrobat Professional 9 with LiveCycle Designer 8.2 ES. Where can I get the relevant Adobe Java APIs from?
    Can someone provide some sample code that could be used for the above requirements?
    Please provide your inputs on these. We have been using IText, but facing some limitations in that recently.

    The answer looks quite clear, and the conclusion is essentially simple: Don't use LiveCycle Designer.
    Keep in mind that LiveCycle Designer originated as design tool for the according servers (that's way back in JetForms's days). For reasons I still can follow, Adobe decided to thow this design tool after any Acrobat Pro for Windows buyer. And the forms industry is now suffering from the mess that created.
    Also, keep in mind that the term "Server" is used here as "service providing application".
    Rants aside, was there a specific feature making you chose XFA (aka LiveCycle Designer)? Knowing these reasons can help us finding suitable workarounds.
    HTH.
    Max Wyss.

  • How to Create a PDF Document and apply Digital Signature in C# using the Adobe SDK?

    Hi Everybody!
    I have to do two distinct tasks here:
    1) How can I create a PDF document using the Adobe SDK in my .NET Applications(C# - 2.0)?
    I just need a basic sample to create a document with a simple text, for example. I did not find any useful information in the adobe documentation. I have the Acrobat Professional 8.0 in my computer, but it's very dificult to work whith de Acrobat.dll and .NET with a poor documentaion.
    2)How can I apply digital signature in a existent pdf document?
    I need to sign documents using the SDK, just a basic sample in c# would be helpful to start!
    Anybody could help?
    Thank in advance!

    Leonard Rosenthol or anybody that can help, sorry to insist.
    I will explain better my problem:
    I have an ASP.NET WebPAge (C# - 2.0). In this page, the user make a request. The request should generate a PDF document with the informations of the request and with a field to add a digital signature. The document created will be send to a approver that will confirm the approval applying his digital signature (I need to do too, a webpage where the approver open the page, choose the pdf document, and sign, just selecting his own certificate and clicking in the button SIGN... but this is another problem).
    That's the reason that I have to create a PDF document. If I create a WORD or HTML document, and then convert to PDF, how can I add a field to digital signature in this pdf document?
    Is there any solution using Acrobat SDK?
    Thank you very much!

  • Exception thrown while processing pdf file with composite fonts using adobe pdf library (v 9.1 )

    Hi All,
    I have an issue with processing composite fonts with adobe pdf library (v 9.1 ).
    While processing a pdf file having composite fonts, the pdf library is throwing an exception.
    The api which throwed exception is "PDPageAcquirePDEContent()". In my code i am calling PDDocGetNumPages(), PDDocAcquirePage() before this api is called, but all those functions suceeded. In the HANDLER, using the ASGetErrorString(), i got this exception error as  "The encoding (CMap) specified by a font is missing."
    Now coming to the input file (which is also attached), this document have three different composite fonts ( details are given below )
    Font Name : TicketBold, Bold(Embedded)
    Font Type : Trueype (CID)
    Encoding : Identity-H
    Font Name : Times-Roman (Embedded)
    Font Type : Type 1 (CID)
    Encoding : Identity-H
    Font Name : TimesNewRomanPSMT (embedded)
    Font Type : TrueType(CID)
    Encoding: Identity-H
    If i convert all the composite fonts to outline using pitstop before processing, it works fine.
    So my question is that whether pdf library doesnt support composite fonts (which i dont think so ) or i need to do a special handling for these kinds of fonts in my application ( which i strongly belive ). If its the latter case, please let me know how to handle it in my application.
    thanks in advance
    best regards
    ~jafeel

    Hi Leonard,
    Thanks for your reply. May i ask you which sample of the PDF Library you used to test my scenario.
    One question i would like to put to you beofre going for filing a formal issue to Adobe will be does this issue has anything to do with the initialization of the pdf library?
    What i meant is that when we call the PDFLInit() we pass a PDFLDataRec structure which is initialized by various path to font folders, cmap folders and unicode folders. Whether if i miss any of these folders will it cause this issue???
    thanks again
    regards
    ~jafeel

  • How to get the Bookmarks in pdf file by using pdf.js library

    In my application i am using PDF.js library to view the pdf files. Now i want to fetch the bookmark details which was already set in the pdf page. How could i get the those bookmark details by using pdf.js library. is there any specific methods available in pdf.js library to get that?

    Hi ShantamReddy,
    I asked #pdfjs and we would need you to clarify what you mean by "bookmark"
    This is where the bookmarks in a pdf are populated [https://github.com/mozilla/pdf.js/blob/master/web/viewer.js#L1032] however you will have to customize what to do with them.
    I hope this sheds some light on what you are trying to do.

  • Display Pdf report on Frame using iText library

    Hi,
    I am able to generate pdf reports using iText library. but i want to display these generated pdf into frame. can u please help for this.
    this is web based application. Through servlet i am generating the pdf report using iText library. I am waiting for your reply ....

    Does this PDF file absolutely need to be displayed within a JFrame? You say you are generating this document on the server side, so if this is a web application, what I might do is place the generated document on directory accessible through http, then on the client browser side open a pop-up browser window with a URL to the PDF document.
    Most browsers have a PDF viewer plugin of some kind.
    If this is a swing application then you can do the same thing but instead of redirecting the browser to the PDF file you can use iText to convert the PDF document to an RTF document and use an RTFEditorKit within a JEditorPane to display the same document in RTF format.

Maybe you are looking for