Compressing a large PDF document using command line or Java code without GUI operations

hi,
I have a programatically generated very large PDF file with lots of tables and cells in it. The size of the file is few MBs. Using Adobe pro, I am able to reduce the size of the PDF in KBs. I want to achive it either through a command line or using Java API without GUI interaction.
I am using JDK1.6.
Thanks.

I think you need the scripting or SDK forums http://forums.adobe.com/community/acrobat
As far as I know, Acrobat does not have command line operation

Similar Messages

  • How to print a specific page from a given PDF document, using command line, please?

    Hello,
    I need your advise, please. My customer requires to print a specfic page from a pdf document they receive, using command line or 3rd party solution.
    Anything you can advise, please? I have seen AcroRD32.exe options, but can only print the whole document.
    Kind Regards

    Not sure if there are any examples. The Acrobat SDK is a must, but it is best treated as documentation to study rather than examples to copy. The examples only illustrate a tiny fraction of the capabiliies.
    (One other note: the solution must involve the client owning Acrobat; Acrobat is not for server use).

  • Can I print the last page of a PDF document using command line?

    Hi
    I am in a situation in which I constantly have to deal with multiple PDF documents and I need to print the last page in each of these, and ONLY the last page. The total number of pages will vary for each file, so the page number for the last page will also vary.
    I would really prefer to not do this manually, by opening up each file in the visible Adobe Reader window and then print.
    Question:
    Is there a way with Adobe Reader (maybe with the help of some other Adobe product) to print only the last page of a PDF document using some kind of command line without opening up the PDF file in the visible Adobe Reader window?
    I'm using Windows.
    Thanks in advance,
    Regards,
    Emil

    Thank you for taking the time to reply.
    I tried both ways and neither works.  It gives me a prompt box that I have to click "next" for every page but after going thru all pages, nothing is sent to the printer.
    Also, all directions I've read indicate it will print to the default printer.  If my default printer is on a network, will that cause problems....
    and...
    should I be getting a prompt box on every page?  I thought all this would happen behind the scenes and not force me to interact with every page.
    dc

  • Can Acrobat Pro X (win) merge pdf documents automatically (command line, watched folders, etc.) ?

    Greetings,
    I would like to know if there is a way to automatically merge PDF documents so that a script (vbscript, not AutoIT) can be relied upon to merge documents.
    Ideally, a command line approach or hot folder is what I am after.
    Thank you,
    Antoine

    You can with vbscript using IAC (InterApplication Communications) if you have Acrobat installed, and you're not using it on a server. More information is in the Acrobat SDK documentation. If you set it up to use a hot folder, only the licensee can be the one dumping the files into it.

  • Using Unix command lines in java code

    I was wondering if there was a way to run a unix command in java code. I know in C++ there is popen, but i don't know of a way in java. The command i need to run is the whois "domain name" command. Any help would be great!
    jarad

    try something like this:
      public static String whois(String domain) throws IOException {
        BufferedReader is = null;
        Process p = null;
        String result = "";
        p = Runtime.getRuntime().exec("whois " + domain);
        is = new BufferedReader(new InputStreamReader(p.getInputStream()));
        String line;
        while((line = is.readLine()) != null)
          result += line;
        return result;
      }

  • How to specify xml file to populate form fields in the PDF file via command line?

    Hi,
    I would like to specify xml data file to populate my pdf file using command line.
    The form was Reader extended.
    I've tried the following syntax :
    Acrobat.exe /A "zoom=100" "C:\example.pdf"#xml="C:\example.xml" but got an acrobat error: "the file name, directory name or volume label syntax is incorrect".
    Where am I wrong?
    Thanks!

    >If I understand correctly you propose something like this
    Something like, yes.
    >
    >Acrobat.exe /A "zoom=100" "xml=C:\example.xml" ....
    Certainly, neither will work. /A is followed by a single quoted
    string. There must be some separator, but I don't know what it needs
    to be (as I was alluding to in my first reply).
    To see if there is any hope, just try without the zoom= completely. In
    any case you can set the zoom in the document properties.
    Aandi Inston

  • Can I convert Word 2003 to PDF using Command Line

    Hello All,
    We have a document generation tool which generates documents in Word 2003 format. The document generation is initiated by the user and the process of generating document is on a remote server. The word file is sent back to the user in word format.
    We would like to convert this doc file to PDF/A format. And we would like to do it programatically, may be using command line arguments. Is it possible?
    Realistically, it is not possible that all the users will have Adobe writer installed in their desktops. In this case, it is possible that Adobe writer is installed in a server and the documents can be converted remotely using command lines?
    Your support on this will be very helpful for us.
    Thanks & Regards
    Irfan

    > Can I use Acrobat Pro to convert a Word 2003 doc to PDF using the Windows command line?
    No.

  • Split PDF by pages using command line options

    Hi,
    I am after a product to split a PDF file by pages / bookmark using command line options.  It would be good, if the product comes with functionality to call from VB/.NET SDK.
    I googled and came across many products, out of these following looks good.  Has anyone used this.  Please suggest me.
    www.neeviapdf.com
    www.coherentpdf.com
    Thanks
    Sarav

    You are posting in the wrong forum. This forum is for Acrobat Scripting.

  • How to Create Test Sequence Document in HTML using command line

    How to Create Test Sequence Document  in HTML using command line
    I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using   C#  .Net

    If you aren't able to figure out how to call a C++ DLL in .net then there may be another option.  Unfortunately I don't know how to do this off the top of my head and I don't have an example.
    The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options.  Then you can use a command line to call testexec.exe: http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to use command line with acrobat to extract page(s) from pdf file?

    I have adobe acrobat, and have a pdf file with over 500 pages. I need to extract small chunks of pages from it as seperate pdf files. I was hoping I could use command line interface to do this faster.
    Something like:
    acrobat src des start end
    so for example
    adobe file.pdf my_folder 3 5
    Is this possible? There are many chunks and I don't want to manually do it for every chunk. Command line would be much easier...
    Thanks

    I can't find any programs... sorry.
    Can you create one for me please.
    It should at least have these 5 arguments: (well the first one is not neccessary since were not using acrobat anymore...)
    [program] [src path/src file] [destination path/file name] [start page (inclusive)] [end page (inclusive)]
    for example:
    acrobat ./my_file.pdf ./my_folder/chunk1.pdf 3 5
    if start page == end page, then it only extracts that one page.
    So this way I can just stack these comands on a .bat file or something (maybe like 100 commands), then run the bat file, and it will create all the files.
    Thanks for doing this, it is appreciated.

  • How do I compress a large pdf file to fit in an email?

    how do I compress a large pdf file to fit in an email?

    No
    Envoyé depuis Molto pour iPad
    De: pwillener
    Envoyé: jeudi, février 12, 2015 07:14 AM
    À: René Allamelle
    Objet:  how do I compress a large pdf file to fit in an email?
    how do I compress a large pdf file to fit in an email?
    created by pwillener in Adobe Acrobat.com Services - View the full discussion
    But generally it is never a good idea to send e-documents as email attachments.  Better use a file sharing service (Acrobat.com, Dropbox, Google Drive, Microsoft OneDrive, ..), upload the document, then send the shared download link via email.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187079#7187079 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187079#7187079
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Creation of PDF Document  using ADF Table data in new window

    Hi Guys,
    I have a requirement of creating a pdf document from adf table and it must open in a new window.I know creation of pdf document using itext pdf jar.But in my case how to write the table data to pdf and how to open it in new window.
    Thanks,
    Srinivas.

    In the TF do like this..
    view activity A-------dialog:invokePdf------->view activity B (invokePdf)
    Fragment A command button would be
    <af:commandButton action="#{pageFlowScope.PdfBean.openPDF}"
    text="Generate" id="cbpdf"
    useWindow="true"
    windowWidth="700" windowHeight="700"/>
    in the action add a return like return "dialog:invokePdf";
    Control flow outcome is "dialog:invokePdf". B would be just a empty fragment.

  • Acrobat 9.5, file corruption when combining .pdfs created from Word or Excel (from Office 2010) into a larger .pdf document

    In Acrobat 9, when I combine .pdfs created from Word or Excel (from Office 2010) into a larger .pdf document, there is data corruption. Some of the text appears as blank boxes when the pages are inserted into the larger .pdf, the main document. I have so far solved this by "printing" the files to .pdf, and then inserting them into the larger .pdf main document, but this creates a fatter .pdf file that is much larger than would otherwise be the case. Are there any other solutions within Acrobat 9, please? If this bug has been solved in Acrobat X or XI, please advise. Thanks.

    As far as the images are concerned, that may be a result of your choice of job settings. You may want to use the Press or Print option if the image quality is important. I assume you are talking about bit images in this case.
    As to the hangup, have you checked to see if AcroTray is active on your system? It may not be running as needed. In the meantime, try checking print to file and then opening that file in Distiller to complete the conversion to PDF.
    Before you ever try a reinstall, you need to do a repair first to see if that resolves the problem. There are a lot of unknowns about your exact process for the printing and your job settings that may be part of the problem. The rest of your system setup is useful in some cases, but did not help me see your problem.

  • How to open url in acrobat reader using command line

    Hi,
    I need to open file from url using command line, but I'm still getting some error (wrong filename).
    I've tried for example this command:
    AcroRd32.exe http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    Can anyone help me and tell me what's wrong?

    You can't use a URL as parameter for AcroRd32.exe.

  • How can i save a large pdf document in two parts

    how can i save a large pdf document in two parts

    i cannot figure this out, either. and i am also not able to set a custom page size to tile (in this case, tabloid/landscape). the dialog box defaults to my ppd for my epson printer (max size = letter) even when i select the drop down for "printing" to a post script file. I've been using illustrator since it's first release and i'm really surprised that this is rudimentary step in finalizing docs for release has been complicated.

Maybe you are looking for

  • How to get login crenditials(Result) from the MBO in a js file

    Hi Experts,     I got a table from oracle db, and i have deployed it and MBO is generated. That table contains the login credentials which i am giving in the login page.       I have created a login page with user id and password when i am trying to

  • Duplicate File issue using FTP adapter - BizTalk 2010

    Hi We encountered an Issue of picking Duplicate files in BizTalk 2010 from the FTP Location. Need your assistance on this. Mainframe sends multiple files a 0 KB file to FTP and BizTalk picks during a particular service window using FTP Adapter.  Rece

  • Magic Mouse keep scratching the table!

    Hi, I've got a Magic Mouse for just about 4 months, and realised recently that it had been scratching my tables, and also only to realise that the Apple Marque had worn off quite a fair bit because of the table surface touching scratching through the

  • Sending sms from ecc5.0 to customers(third party)

    hai experts ! i have a question for u when we create a purchase order and click on the 'create' button internally an sms should be send automatically to the customers. so, what configurations we should do regarding this? can any one send them in deta

  • Formating a Macbook pro 2.16 core 2 duo

    Can I format my mac from an External HD?