New files created when to split a PDF file using the Adobe SDK are much higher than expected

Hello. I use the kit Adobe SDK to split large PDF into a set of small PDF files, using a set of page ranges. I created 2 PDDocs.  One is for the original PDF, which I open it.  In the other, I insert a range of pages of the original.  I'm doing this for each set of pages.

objPDDocNew.InsertPages (-1, objPDDoc, startPage - 1, lngPageCount, 0)

It works fine, except that the combined size of the smaller PDF files is 10 or more times the size of the original PDF file! Y at - it an explanation for that? Y at - it a setting that I can put to reduce the size of the output files? I run my program of my Windows 7 desktop that has Adobe Acrobat XI. Thanks for any help you can provide.

You can get an idea on what elements are the use of how much space in the PDF file by opening the various Acrobat Pro files, and then select file > save as other > optimized PDF - then click on the "Use of space Audit" button in the upper right corner of the dialog box that opens. When you compare the use of the space of your source files with the file target that you can discover what is causing the increase in the size.

Tags: Acrobat

Similar Questions

  • Is it possible to create a new file using the XML via java Script?

    Hello everyone,

    Is it possible to create a new file using the XML via java Script

    • I have xml information that need to use for file name, size.
    • Based on xml file we can create a new file in InDesign with java script?
    • Kindly help me if anyone has an idea about this.

    I use InDesign CS4 on windows 7

    Sample file is attached below.

    Kind regards

    Siva

    <UpdateAd>
    <AdId>3403699</AdId>
    <Width type="mm">91,79</Width>
    <Height type="mm">80,00</Height>
    <ProductionCategory>4</ProductionCategory>
    <BookedCCIColors>sw</BookedCCIColors>
    <WorkFlowType>PDF</WorkFlowType>
    <CustomerNumber>652224</CustomerNumber>
    <CustName1>Erich Prang</CustName1>
    <Description/>
    <Description2>R</Description2>
    <UpdateIns>
    <Titel>RHZ</Titel>
    <Publication>B2</Publication>
    <RunDate>26-07-2011</RunDate>
    <Zone>H30</Zone>
    <KDDATEN>nein</KDDATEN>
    </UpdateIns>
    <WorkflowStep>IR</WorkflowStep>
    <Proof>No</Proof>
    </UpdateAd>
    
    

    xml.png

    Try this:

    var f =File.openDialog ();
    f.open('r');
    var xml = new XML(f.read());
    f.close();
    
    var myDocument = app.documents.add();
    myDocument.documentPreferences.pageHeight = xml..Height+"mm";
    myDocument.documentPreferences.pageWidth = xml..Width+"mm";
    var rect = myDocument.pages[0].rectangles,add();
    rect.geometricBounds = myDocument.pages[0].bounds;
    rect.strokeAlignment = StrokeAlignment.INSIDE_ALIGNMENT;
    rect.strokeColor = myDocument.swatches.item("Black");
    rect.strokeWeight = 1;
    myDocument.save(File(f.path + "/" + xml..AdId + ".indd"))
    

    Substances

  • Make a new file using the "Save as".

    Bit of feedback to the staff HERE...

    We use LabVIEW 8.6. and, at least in this implementation, trying to make a new VI using the command save as product a menu of choices, including none make sense to me. Sorry, but I can't say which of them will produce only makes a new file with a changed name to be refined. Trial and error product folders, but not files, replaces the original file (why would I do that, I chose save as no record) and about each result other than what I was trying to accomplish.

    May you fix this in a future release, but for 8.6, I feel that I must take a class just to save the new file.

    you're not alone...

    Have you tried "open extra copy?  This is probably what you want.  It will not copy the original and will keep the open source.

  • Error: failed to create or save new files in the folder where it was downloaded during the upgrade from Windows Vista to Windows 7

    Original title:

    Attempt to upgrade Windows Vista to Windows 7

    I try to update my Windows Vista to Windows 7. I bought to download the rom update the Microsoft store and downloaded, but when I try to start the upgrade I have a stateing message that it is impossible to create or save new files in the folder where it was downloaded. I checked the security permissions in the file and made sure that no programs are 'read only', but it won't always go beyond this point!

    Hello

    What is the edition of Windows Vista installed on the computer?
    Make sure that you upgrade to the correct version, some versions of Windows cannot be upgraded with the installation disc you are trying to use. For example, you cannot upgrade a 32-bit version of Windows to a 64-bit version, or upgrade a higher edition of Windows like Windows Vista Ultimate Edition, to a lower edition, such as Windows 7 Edition Home Premium. If this is the case, you will need to use the custom during installation option.
    Before you attempt to upgrade, please run the Windows 7 upgrade Advisor:
    http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor
    Also, check if your computer is compatible for Windows 7, using the Compatibility Center:
    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx
    To learn more about the upgrade process, please visit the link below:
    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7
    I hope that helps!
  • Server data store will automatically get updated when the new file (with the same name) is placed in the landing area


    Hi guys,.

    The data store server-side will get automatically updated when a new file with the same name is loaded in the landing area?

    for example

    1 data store created for server-side get the file named UK.xls (he has 5 rows)

    2 snapshot created for the above data store

    3. created with the snapshot process

    After that if I remove 2 lines from the same file and load again to the landing (with the same name). So by re-running the process will take the last file OR do I need to reload the file in the data store every time when there is a change in the file. We also tried with option to work but the last file was not picking up.

    Any help will be really appreciated.

    Please lets us know your updates.

    Please advice

    Thank you

    VT

    Hello

    When you create a snapshot, you create a snapshot whose task (provided that you use a data store server-side) can be run from a job. To refresh the data, run the snapshot in a job task. If you create a task at the time the snapshot and the processes that use it, they will automatically connect and will be 'upstream' data through the snapshot in the process. You can then choose whether it would be appropriate to write the snapshot or not (for the effectiveness of performance if you want to do the straight through processing) by activating or deactivating the bucket of data staged that the snapshot written to. The snapshot in the work task means that the data is refreshed.

    For the work of design to the Director, you can refresh the snapshot by running again it manually in the context menu.

    Kind regards

    Mike

  • create the new file using report generation express vi

    Hello

    In my application, I need to write that certain data in spreadsheet Excel. For whom I created an excel template and I used the express vi report generation Toolkit to record appropriate data in the columns of the place. I need a new file created every day by the name of the day and write the data that he rest of the day. I have problems, create the new file using this express vi. I tried to use the low level vi but not able to make properly.

    Join my code and the excel template.

    Help, please.

    Thank you!

    I suspect that your problem is illegal characters (' / ') in your path, certainly it is the case in your original vi. You need to format your path, something like this (underscore instead of a slash stroke):

  • Compare 2 PDF of the file through the command line using the Acrobat SDK

    Hello

    I want to compare 2 by command line of the PDF using the Acrobat SDK, is it possible?

    My needis to create Automation for comparison in .net, c# technology to compare files of 100.

    Could you be it someone at - it one please let me if the Acrobat SDK kit supports integration with .NET and is it possible to call the term comapere.

    OK, Acrobat is not suitable. It is not technically suitable for the server; also no license. It doesn't have a command line, only OLE user interface.

    There are Acrobat PDF library, allowing development in C/C++. But I think that there is no function to compare. You will need to implement one yourself, which is a probably a lot of work. What kind of comparison do you want? If you just want to know if the files have changed at all you can use all the checksums without any API. Or are you looking for any Visual change? Or text change...?

  • action with the new file with the size of the selection

    Hello

    I try to record an action that takes a copy of the image and creates a new file with the same dimensions. The action record always have the size of the file of the new hardcoded image inside. I tried to put the Preset in the Clipboard, but this is not recorded in the action. It is with the CS3 version.

    How can I create a new file that takes into account the size of the image?

    Thanks for your help,

    Daniel

    You can save the menu 'Image-duplicate"to make a copy of the entire image without registration of the size. If the doc doesn't have only one layer, you can also save the context menu in the layer panel to duplicate the layer to a new document. The size is not saved.

  • How to open the pdf file using the LabVIEW program

    I want to open the pdf file using the system exe, but this isn't the case. Can you help me?

    Thanks for your help.

  • My creative cloud cannot happen on the adobe servers and when I tried to repair the host file using the creative cloud cleaning tool, it displays Error occurred while setting entries HF: 5

    My creative cloud cannot happen on the adobe servers and when I tried to repair the host file using the creative cloud cleaning tool, it displays Error occurred while setting entries HF: 5

    Please let us know your operating system.

    Concerning

    Megha Rawat

  • I recently installed 7.0. Can't open file: 'NEW - files from the Clipboard '. What am I not doing?

    I recently installed 7.0. Can't open file: 'NEW - files from the Clipboard '. What am I not doing?

    Hi myless,.

    I apologize for the long delay. What program work? I would like to know if I can take you to the correct community for assistance. Thank you!

    -Kathleen

  • Can I add watermarks to PDF files using the PDF package?

    Can I add watermarks to PDF files using the PDF package?

    Hi Susannah,

    Adobe PDF Pack does not allow to edit a PDF file. To do this, you would need Acrobat. We invite you to try Acrobat free for 30 days: see http://www.adobe.com/products/acrobat.html for more information.

    This help document describes how to watermark a PDF in Acrobat: add watermarks to PDF

    Best,

    Sara

  • How can I create a series of blocks of text using the Excel list values?

    It is first of all, the first script I am trying to write from scratch. I'm completely green at the script and I picked up a few bits of ID Adobe scripting guide, but nothing has really stuck still relating to this particular goal.

    My supervisor maintains a master list of advertising space, with the name of the account, is the width of the space, and how space is the height, in an Excel sheet. These spaces can number in the hundreds, and I'm stuck manually drawing a rectangle for each space, which takes a lot of time.

    I would like to create / helped to create a script that will take these values and "magically" to draw these spaces in the form of blocks of text, with the width (in columns) and the height (in inches) defined by the values in the main list, as well as the name of each account in the subsequent text frames.

    The script didn't necessarily need to be able to pull the values directly from the Excel sheet; Can I transfer a file text if necessary, or directly in the script, values he change because I need it. A great thing (if she is not able to pull directly from an Excel sheet) which is the number of spaces a week changes, and so do the accounts and the width and height. Accordingly, it would be ideal that values of the sheet could be modified easily, in order to create a new set of spaces as necessary.

    Positioning for each space is not crucial, only the height and width. If they were all on top of each other on the same page, it is a result for me. The main idea is to not have to draw them all manually, one by one.

    For me, this looks like a command, but I hope that some experienced there Scripting Guys can help me, because I want to become experienced as well.

    Thus, the TL; DR version:

    -Script to draw a series of text blocks.

    -Size of the text boxes should be defined by the values width and height of spreadsheet Excel.

    -Text blocks must have the account name as content (from account in the Excel worksheet names).

    -Accounts, width and height changes every week in the Excel sheet, so must be relatively easy to exchange all values.

    -Width values on the Excel worksheet columns. It would be ideal that the script could turn those numbers into multiples of columns as necessary.

    -Script (optionally) can take values directly from Excel sheet.

    -Script (option) can set the fill color for the gray text frame. (If it works as I think, I could just select all the resulting images of the text myself and put them all to grey at the same time... I'm not lazy as )

    Thanks in advance to anyone who can help in any way possible, even if it's just a little push in the right direction. This script will save 1 to 2 hours of boredom every week.

    Look like the perfect thing for the InDesign scripting.

    I copy content from Excel to a text file, for a format easily read in InDesign, and there will automatically be a TAB for each 'cell', just using copy and paste.

    Here is a piece of code, perhaps you could go on with (the addition of variable to change pages and the location on the page and other things).

    The readFileLineByLine function, can be easily reused with any function using "recall". You simply tell the function what you want to be executed for each line of text that reads:

    const COLUMN_WIDTH = 2; // Define the column width in inch
    
    var pageIndex;
    var textFramesExported; // not implemented.
    
    // Add a new dokument. Set myDoc to app.activeDocument to use
    // the current document instead of creating a new one.
    var myDoc = app.documents.add();
    
    // The doSomethingWithTextRow function is called upon for every line of text read.
    readFileLineByLine('c:\\test.txt', doSomethingWithTextRow);
    
    function doSomethingWithTextRow(row){
        // We expect the text line to be TAB separated (\t = TAB). We get that from just copying the contents of an
        // excel file into a text document.
        var cells = row.split('\t');
        var companyName = cells[0]; // The Company name in the first slot of the array
        var width = COLUMN_WIDTH * cells[1];
        var height = cells[2];
    
        // Create a new text frame for every row handled
        if (pageIndex==undefined) pageIndex = 0; // Count up when you have exported a number of texts, I leave this for you to do.
        var newTextFrame = myDoc.pages[pageIndex].textFrames.add();
        newTextFrame.contents = companyName;
    
        // The text frame is created in the top left corner.
        newTextFrame.geometricBounds = [0, 0, height + ' in', width + ' in']; // Top, Left, Bottom, Right 
    
        // You might want to move the textframes to other positions, keeping track of how many you put out per page.
        newTextFrame.move( [10, 10] );
    }
    
    function readFileLineByLine(path, callbackFn){
        var myFileIn = new File(path);
        if (File.fs == 'Windows'){
            // This was probably added to recognize UTF-8 (even without its start marker?)
            myFileIn.encoding = 'UTF-8';
        }
        myFileIn.open('r');
        var myEncoding = myFileIn.encoding;
        try{
            if (!myFileIn.exists){
                throw('Missing file: ' + myFileIn.fsName)
            }
            var ln = '';
            while(!myFileIn.eof){
                // Read the lines from the file, until an empty line is found [now as a remark].
                ln = myFileIn.readln()
                // if(ln !='' && ln!='\n'){
                   // Call the function supplied as argument
                   callbackFn(ln);
                // }
            }
        }catch(e){
            alert(e);
            gCancel = true;
        }
        finally{
            myFileIn.close();
        }
    }
    

    The file in C:\ in my example was recorded in UTF-8 format and looks like this (showing hidden characters):

    Post edited by: Andreas Jansson

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

    Hello

    I'm in a situation where I constantly have to deal with several documents in PDF format, and I need to print the last page in each of them and ONLY the last page. The total number of pages vary for each file, so the page to the last page number will also vary.

    I really prefer to not do it manually, to open each file in the visible window of Adobe Reader, and then print.

    Question:

    Is it possible with Adobe Reader (perhaps with the help of another Adobe product) to print only the last page of a PDF document using some sort of command line without having to open the PDF file in the Adobe Reader window visible?

    I use Windows.

    Thanks in advance,

    Kind regards

    Emil

    Hey, I've just set up a measure of inquiry by accident. That's really bad thinking. Here's what to do.

    When the "Create new Action" checkbox is shown...

    Choose Start with: a file open in Acrobat

    DO NOT CLICK on add a step statement

    Open tools more

    Click once on run JavaScript

    A blue line to run JavaScript must appear on the right side.

    Click on the small box under Options inside the blue line

    A JavaScript editor should appear; Enter the program, and then click Ok

    To save in: select do not save the changes.

    Click Save

    Give a name; you don't need to enter a description (although it won't hurt if you do).

  • Generate class files using the WSDL url and wsimport

    I am trying to create a java application that hits the service exposed by hub.

    To create the application in java, I'm generating class files using the WSDL that is created and exposed by the hub.

    Executed steps:

    1 created an application in OPA.

    2. deployed on the hub (usinf deploy option of snapshot on Policy Modeling)

    3. in the deployment tab, I see the request and get the url of the wsdl by clicking on it.

    I try on this wsdl wsimport command. But it gives me following error messages.

    ---------------------------------------------------------------------------------------------------

    C:\***\AllFiles > wsimport http://localhost:7001/hub/determinations-Server/assess/SOAP/generic/12.2/AttemptOne?WSDL

    the analysis of WSDL...

    [ERROR] invalid WSDL http://localhost:7001/hub/determinations-Server/assess/SOAP/generic/12.2/AttemptOne?WSDL , expected {http://schemas.xmlsoap.org/wsdl/} html (line 2) data definitions

    Cannot read the WSDL document: ( http://localhost:7001/Hub/determinations-Server/assess/SOAP/Generic/12.2/AttemptOne?WSDL , because 1) did not find the document. (/ 2) the document could not be read. (3) the element the document root is not < wsdl:definitions >.

    [ERROR] WSDL:service is not found in the WSDL (s) provided:

    At least a WSDL with definition of at least one service must be provided.

    Unable to parse the WSDL file.

    ---------------------------------------------------------------------------------------------------

    If I store the wsdl file in a file on my local computer, and then run wsimport, it generates the classes very well.

    Can someone provide me with a way that I can generate the classes using the wsdl url and not the local file?

    Also, do I need to create a connection in the Connections tab on the hub?

    Thanks in advance.

    -Alain

    Looks like you could run in the user authentication when wsimport runs against the WSDL. Instead of the WSDL, its reception, the login page.

    The best way to work around this problem is perhaps what you do already - to obtain the wsdl and save them in a file.

    Another solution is to disable the restriction of connection to the Web Service API. You can do this in the menu on the users page (admin role can turn on and off.

    You can switch between a user and a password with the call of the WSDL file, but I don't know if its possible to do with wsimport

    See you soon

    Frank

Maybe you are looking for