To access bookmarks in pdf doc using acrobat sdk with C#

Hi, I am converting a word doc to PDF. While doing this the headlines in word doc are getting converted to bookmarks in PDF & I get a bookmark tree. I want the bookmarks to be collapsed. I am using acrobat dll to convert word doc to pdf. Want to use the same to collapse the bookmarks.
Any help would be appreciated.
Thanks & Regards,
Lalit

Hi Irosenth,
If we have Acrobat installed on our m/c in Micorsoft office word I get an "Acrobat" tab. In that I get an option to create "PDF" from word.
So keeping this in mind I created a  project in C# using VS 2008. In this project I took the reference of "Acrobat.dll" the com library.
Using the reference of this library I converted the word/excel/ppt docs to PDF.
Below is the code snippet :
public 
void startConversion(string docFile, string pdfFile){
Acrobat.
AcroAVDocClass _acroDoc = new Acrobat.AcroAVDocClass();Acrobat.
AcroPDDoc _pdDoc = null; 
string strNonPDFFile = docFile; 
string strPDFFile = pdfFile; 
_acroDoc.Open(strNonPDFFile, strPDFFile);
_pdDoc = (Acrobat.
AcroPDDoc)(_acroDoc.GetPDDoc());
_pdDoc.Save(
Convert.ToInt16(Acrobat.PDSaveFlags.PDSaveFull), strPDFFile); 
_pdDoc.Close();
_pdDoc =
null;_acroDoc.Close(1);
_acroDoc =
null;}
This does convert Word/exce/ppt to pdf successfully. But I wanted to get access to the bookmarks of the PDF file....
Any help would be appreciated.
Thanks & Regards,
Lalit

Similar Messages

  • URGENT: Manage access rights on pdf document using Acrobat Javascrip

    Hi everybody,
    I have pdf document on my website, and I want to manage access right on those documents, some users has the right to print, save the document and others not,
    So I'd like to know if it is possible to do it using Acrobat Javascript, and how I can do it if you have any exemple of script, document it will be very helpfull for me, I'm looking for that from two weeks already!!
    Thx

    Hi
    I'm not shouting !! I wish I could find the answer some where then I'll not post my message, plz if you have some answer that you think that it will help me then tell me and I'll be thankfull, and if you don't have any useful answer then PLZ forbear and I'll be thankful too.

  • Print PDF file using Acrobat SDK - Warning message

    Hello,
    We are trying to create automatic program in c# that will print all pdf files located in a specific folder, using Adobe Acrobat 9.0 SDK.
    Whenever the application tries to print file, we receive a warning message ("WARNING! A script has requested to print an Acrobat file. This could print an entire document. Do you want to proceed printing?").
    If we press yes, the file is printed, but next time we'll run the application, this message will appear again.
    Since this application supposed to run automatically (with no interaction with the end users), we want to prevent this warning message from appearing.
    How can we eliminate this warning message?
    Is there any other way to print PDF files using Adobe Acrobat from another application?
    Thanks,
    Lilach.

    joeln3:  I believe the original post refers to a client application, not a web page.  Why use JavaScript from within a client application?  I understood their use case to involve a client app referencing the PDF Library, loading various PDF files, and using one (or more) of the PDF Library's Print methods to invoke Acrobat's internal print routines.
    Dave

  • How do I compress PDF files using Acrobat SDK?

    have a web service created in a .net environment that examines existing pdf files in a staging directory prior to sending them over the wire using FTP.
    Part of that process requires that I rename individual files in order to associate them with a particular batch.
    I also have a requirement to reduce the size of individual files as much as possible in order to reduce the traffic going over the line.
    So far I have managed about a 30% compression rate by using an open source library (iTextSharp).
    I  am hoping that I can get a better compression rate using the Acrobat SDK, but I need someone to show me how, hopefully with an example that I can follow.
    The following code snippet is a model I wrote that accomplishes the rename and file compression...
                const string filePrefix = "19512-";
                string[] fileArray = Directory.GetFiles(@"c:\temp");
                foreach (var pdffile in fileArray) {
                    string[] filePath = pdffile.Split('\\');
                    var newFile = filePath[0] + '\\' + filePath[1] + '\\' + filePrefix + filePath[2];               
                    var reader = new PdfReader(pdffile);
                    var stamper = new PdfStamper(reader, new FileStream(newFile, FileMode.Create), PdfWriter.VERSION_1_5);
                    int pageNum = 1;
                    for (int i = 1; i <= pageNum; i++) {
                        reader.SetPageContent(i, reader.GetPageContent(i), PdfStream.BEST_COMPRESSION);
                    stamper.Writer.CompressionLevel = PdfStream.BEST_COMPRESSION;
                    stamper.FormFlattening = true;
                    stamper.SetFullCompression();
                    stamper.Close();
    Any assistance is appreciated.

    You can't use Adobe Acrobat on a server.

  • How to use Acrobat SDK with C# and how much is it?

    I just want to know these info because I'm new here and I can't seem to find any answers to these here in the forums and on the Documentation.

    Hi,
    The Acrobat SDK is free and can be downloaded from http://www.adobe.com\devnet\acrobat. Please note to use the SDK you require Acrobat/Reader to be installed.
    As for using it with c#, there are a number of sample files in the SDK that can be used to learn. There is also documentation online and in the SDK.
    Hope thie helps
    Malcolm

  • How to use Acrobat sdk features in java application?

    Hi
    In my project i have an requirement to make static pdf in to dynamic form  , So how can i make static PDF to dynamic one as my project platform is purely  in java . How can i make use Acrobat SDK  InterAppCommunicationSupport/ samples in my java code ?
    Thanks & Regards,
    Prashant P M.

    Hi Leonard,
    Thanks for your kind reply , I am attaching  a sample SchollForm static PDF with this post, where it consist of student details like Name ,lastName ,section etc.
    I like to convert this static PDF in to dynamic PDF means above field should be fillable ,So Using Acrobat SDK is it possible to achieve this above stuff.
    If yes then Please can you give a brief idea how to do this one using Acrobat SDK with java? .
    Thanks in Advance.
    Prashant P M.

  • Problem on setting pagelabel using acrobat sdk

    hi all,
    On setting pagelabel into the pdf file using acrobat sdk 9, we have an issue while opening the pdf file in notepad we got the value of pagelabel as <</P(CoverNUL)>> for your reference i have attached the screenshot and my code is below
    ASInt32 textSt;
    ASText prefix =  ASTextFromScriptText("Cover",NULL);
    PDPageLabel textLabel;
    textLabel = PDPageLabelNewASText (pdDoc,ASAtomFromString("None"), prefix,NULL);
    if(PDPageLabelIsValid(textLabel)==true)
    PDDocSetPageLabel (pdDoc,0,textLabel);
    PDDocSave (pdDoc, PDSaveFull | PDSaveLinearized, pathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
    PDDocClose(pdDoc);
    Please, can any one help me on this.
    Regards,
    Jayakrishnan

    Use this it will work..
    ASInt32 iTemp = PDDocGetNumPages (pdDoc);
      PDPageLabel pageLabel;
      pageLabel = PDPageLabelNew (pdDoc,ASAtomFromString(lblList), NULL,NULL, startPoint);
      if(PDPageLabelIsValid(pageLabel)== true)
        PDDocSetPageLabel (pdDoc,0,pageLabel);
        PDDocSave(pdDoc, PDSaveFull, path3, ASGetDefaultFileSys(), NULL, NULL);
        AVDocClose (avDoc, true);
    Be Well

  • Can I create bookmarks on PDF document using stadard acrobat writer? or only using professional acrobat writer?

    can I create bookmarks on PDF document using stadard acrobat writer? or only using professional acrobat writer?

    Hi hagitl14083762,
    Bookmarking in available in both Acrobat Pro and Standard. You'll find instructions here: Adobe Acrobat X Standard * Create a bookmark (while written for Acrobat X, these instructions apply to Acrobat XI as well).
    Please let us know if you have additional questions.
    Best,
    Sara

  • I have been able to open PDF docs using C# API Process.Start("Full_path_To_the_PDF_File") in windows 7 or windows 8 with all previous versions of Acrobat32 reader.

    I have been able to open PDF docs using C# API Process.Start("Full_path_To_the_PDF_File") in windows 7 or windows 8 with all previous versions of Acrobat32 reader.
    However, with v11.0, the same command, in Windows 8, it does not open the PDF document. I can see the Acrobat(32) started in the task manager, but the document does open. Not sure how I can troble shoot this problem. Any help would be appreciated.

    I haven't use the C# API but I imagine it is the same as C ShellExecute. Which in turn is the same thing (in essence) as double clicking in Windows Explorer.
    So... does Adobe Reader run normally on this machine?
    And does it start and open if you double click on a PDF file?

  • I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud

    I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud option in Acrobat. Kindly help me to sortout this problems?

    So I tried generating the same PDFs on two other computers that have Acrobat 9 Pro.  Results were reproduced.  The verdict is:
    - complex PDF files (that is, containing cross-references, tables of contents, and bookmarks) generated by Acrobat 9.x Pro are roughly 2-5x larger than the identical file generated with Acrobat 8.x Pro.
    - different PDF conversion settings make a negligable difference (less than 10% rather than 70-80%).
    - using the "Reduce File Size" or "Optimize PDF" option cuts the file size roughly in half, almost always resulting in a "image downsampling mask" warning message, which requires acknowledgement (that is a problem for batch processing or automation).
    - adding an Acrobat watermark to the file cuts the file size roughly in half.
    - just using Save As to another filename has no effect on file size.
    - generating the PDF in Acrobat 9 with links but no PDF bookmarks still results in the inflated file size.
    - generating the PDF in Acrobat 9 without any links or bookmarks results in approximately the same file size as the Acrobat 8 PDF with full links and bookmarks.
    It appears that Acrobat 9's manner of adding links is what's bloating  the files, and in my case it's probably not related to images or image resolution/print quality.  It's a shame, because Acrobat 9 seems to have made some  improvements to the Review Tracker interface, and a few other bells and  whistles which I haven't really gotten around to exporing yet.  But  unless I find a way to keep my links and the PDF file sizes comparable to what I was  getting with Acrobat 8 Pro, it looks like I'm going to stay with Acrobat 8.

  • How to convert html to pdf using acrobat sdk 8.0?

    hi
    I am a beginner of acrobat sdk .
    I want to know How to use acrobat sdk 8.0 to convert html to pdf?
    herere some questions :
    1:How to support navigation inside PDF file that generated using acrobat sdk 8.0? For example: theres catalog in the top of HTML file, customer hopes can navigate inside the PDF file just like navigating inside the HTML file.
    2:How to support operating some controls in the PDF file that generated using acrobat sdk 8.0? For example: therere some drop down list and text box in HTML file, customer hopes can input text in the text box, click the drop down list to see available options in it just like in HTML file.
    Thanks in advance for any help and suggestion.

    Hello,
    I want a system to re-brand my 37 pages PDF for affiliates.
    I want a php dynamic link in the PDF online in order to personalize automatically the PDF for each affiliate. I need to change 2 links each time. The affiliate ID and the Paypal email (payment button) in page 36.
    Can you help?
    Please let me know
    Thank you
    Alex
    PS My system is online and i can give you the url if it helps.

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

    PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.

  • How do I edit a PDF file using Acrobat 9 - Version 9.4.0

    My company - [name deleted by host] purchased Acrobat 9 - Version 9.4.0. for me
    How do I edit a PDF file using Acrobat 9 - Version 9.4.0
    I need to edit - copy, extract text, add text, etc. from existing PDF files to SAVE my changes,
    or create a new PDF file from an existing file.
    This is very important for me to be able to do my job effectively.
    I spent over 2 hrs the last few days, and another hour today, still can't do it.
    PLEASE respond ASAP with a solution.
    Thanks in advance,
    - Daulton West
    [signature deleted by host]

    PDF is an end destination format - although Acrobat is capable of making minor changes to a file (e.g. to correct typos) it is not a word processor or DTP application. Major changes must be done in the original document, and the PDF file re-exported.
    You can copy text from a file by selecting it and right-clicking, or you can save the file as plain or formatted text. To make small changes to the text on a page, use the touchup tool - see the help file for more info.

  • How can I make some restictions in a PDF document using Acrobat 9 pro?

    Hello, I am a teacher from Spain. I am creating a PDF from a power point presentation, using Adobe Acrobat 9 pro. I will copy it in a cd and give it to my students. I would like to add these restrictions:
    I would like to avoid that they can copy this document.
    I only want to allow them to print it once.
    Thank you

    You can prevent copying of content (text and images) by setting permissions on the PDF file using Acrobat (apply password security, leaving the document open password empty).
    It is not possible to limit the number of times a PDF file is printed, no matter what settings you use. Printing can be disabled completely, or restricted to low-resolution output, but that is all. Even if it were somehow possible to restrict how many times Reader or Acrobat was allowed to print, there is no way to stop someone changing the copy number in the operating system print dialog, as that is beyond the control of any installed program. A printable PDF file can also be printed to another PDF file (called refrying), which will remove any interactive restrictions on the original.
    Note that permissions security is only respected by Adobe software. Third-party applications will often ignore the restrictions and allow all operations. The only way to truly protect the file is to apply a security method which is only found in Adobe products (such as LiveCycle policies), which will as a side-effect prevent anyone from opening the file in a third-party application that might not respect the restrictions.

  • Can't view PDF files using Acrobat Reader X

    We made many PDF files available on our Web site. In the past few weeks we noticed that users who were using Acrobat Reader X and Internet Explorer 8 or 9 were not able to view some PDF files. Basically, when they clicked a link to display a PDF file, the screen would be cleared and the status bar showing "Loading ...KB/...K/B" would be displayed. The status bar would move a bit and then got stuck. The PDF file would never be displayed. Sometimes, my users could click the Back button to go back the previous Web page and sometimes they had to close or kill the IE window. Small PDF files seemed to be fine. I was able to repeat this problem on PCs running Windows XP and Windows 7. I also tested clicking the same PDF files with PCs installed with Acrobat Reader 9 and I was not able to cause the problem to occur, so I am pretty sure that this problem is related to Acrobat Reader X. I also noticed that if I unchecked the "Display PDF in browser"  option in Acrobat Reader X so that PDF files would not be displayed inside the Internet Explorer window, I would be able to view all PDF files without any problems.
    I also did an experiment by resaving many PDF files using Acrobat Pro (Reduce File Size...) to be compatible with Acrobat 8 or above. I was able to open these PDF files using Acrobat Reader X but when I used a PC with Acrobat 9, it would get stuck instead. Most of my PDF files were created a long time ago and we usually made it compatible with Acrobat 5 or above.
    I saw that some people reported some problems with Acrobat Reader X but I did not see a solution except uninstalling Acrobat Reader X and installing an old version of Acrobat Reader instead. Anyone has any ideas why this is happening and how to fix this problem?
    RJ

    Sounds like you got the trial of Acrobat. Go to add/remove programs, get rid of it, the download the free Reader from http://get.adobe.com/reader/

Maybe you are looking for

  • Problem with follow-up transaction from task

    Hello, I have a problem with creating follow-up transaction from tasks. Here is the problem, I've defined two new transaction types Z010/Z020 with business transaction category BUS2000125 TASK and I want to be able to create follow-up transaction fro

  • LCD screen iMac

    Sorry if posting this topic here offends anyone but I was at a bit of a loss just where to post this query. It relates to cleaning the frequent smudges I seem to accumulate on my LCD screen. I checked at my local Apple shop who wanted me to pay an ex

  • How many Discs in the box?

    Hi there. Perhaps it will sound kind of weird, but I don´t remember how many discs came with the FCS2. Were there 8 or 9? Because I rescently opened my box for reinstallation and found only 8. The one I believe is missing is a Training Tutorial DVD.

  • Requirement of antivirus for nokia 3230.

    I am always fill my MMC card from PC having updated antivirus like quick heal. So is their any requirement of antivirus for my nokia 3230? If yes kindly tell me sample suitable antiviruses so that I can install into my device.

  • 10g buffer keep pool

    Hi, If I create a db_keep_cache_size pool and specify that a tables storage buffer_pool is the keep area. Further assume that this table is somewhat large (9Gb) and contains say a years worth of data, but 99 percent of queries only hit the 30 most cu