Equivalent for Save as

After processing a single PDF file with my plug-in and manually "saving as" the file size is around 13MB. When I use the same plug-in through the batch processor the file is 60MB. So I tried making a full save with PDDocSave after processing but the file size is still 53MB.
What's going on here? Is there another way to do a real "Save as" in a batch process?
Thomas

To wrap this up: The optimization works fine now.
Here's the code I used:
    char* pdfFilePath = "D:\\Benutzerdaten\\tk\\Desktop\\filename.pdf";
    PDDocSaveParams saveParams;
    ASPathName asPathName;
    if(strlen(pdfFilePath) > 0 ) {
        char sPathFlag[16] = "Cstring";
        #ifdef MAC_PLATFORM
            if (!strchr(pdfFilePath,(int)':'))    strcpy (sPathFlag, "POSIXPath");
        #endif
        asPathName = ASFileSysCreatePathName(ASGetDefaultFileSys(), ASAtomFromString(sPathFlag), pdfFilePath, 0);
        unsigned char buffer[sizeof(_t_PDDocSaveParams)];
        saveParams = (PDDocSaveParams)buffer;
        memset(saveParams, 0, sizeof(_t_PDDocSaveParams));
        saveParams->fileSys = ASGetDefaultFileSys();
        saveParams->newPath = asPathName;
        saveParams->saveFlags = PDSaveFull | PDSaveLinearized | PDSaveCollectGarbage ;
        saveParams->size = sizeof (_t_PDDocSaveParams);
        saveParams->saveFlags2 = PDSaveCompressed | PDSaveAddFlate | PDSaveReplaceLZW | PDSaveOptimizeXObjects | PDSaveOptimizeContentStreams | PDSaveOptimizeFonts;
        PDDocSaveWithParams(pdDoc, saveParams);

Similar Messages

  • HT204053 I buy icloud for save my data, but I can't backup to icloud since I purchase it, and I lost my email from itune that I can cancel that on14 day, please andvise me, how to cancel my purchase since I can't back up my data is feel useless spent more

    I buy icloud for save my data and app, but I can't back up my data since I purchase, and I lost my email that I can canceled on 14 days, I please advise me since it useless buying without able to backup my data, I just want to canceled

    Please see this post:
    https://discussions.apple.com/message/16968425#16968425
    it gives the USA number - if you don't live there you will have to find an equivalent number from the 'Contact Us' link at bottom right of this page.

  • Is there an MS Visio equivalent for Snow Leopard

    Is there an MS Visio equivalent for Snow Leopard which can read Visio files (*.vsd), save as Visio files, and paste drawings etc into Microsoft Office applications (Word, PowerPoint, etc)

    Since Ovation take PP slides have you tried just exporting Keynote to PP? Does that work for you?
    Haven't used Ovation myself - looked at the demos and was distinctly underwhelmed, but then I've always thought KN did what I wanted - interesting that Ovation claims to improve type legibility - with KN that comes as standard! Would love a clock timer on screen though.....

  • Is there a logic:match equivalent for JSTL?

    In a search page I execute a query which returns an array of objects (All objects are of the same object type and are cast to Object[]) and each object has many attributes. I tried using <logic:iterate>, but I was never successful in having it display any results. I believe this had something to do with the entire array being passed via session scope instead of just one record and me not specifying it properly with <logic:iterate>. I was able to successfully use <c:forEach> and it worked right away. I stuck with using that because of its "just works" ability in addition to using a lot of other JSTL code. However, one of the attributes that is being printed out needs to be parsed and is of the form "Yxxx". <logic:match> covers this very nicely, but when I specify it in the below code it is not able to find my variable in any scope.
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match parameter='${myResults}' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>I have done several google searches, but I haven't found a JSTL equivalent for <logic:match>. If there is one could someone please tell me what it is? In addition, although <logic:match> is great I still need to print out a substring of that attribute. Could someone tell me how to do that? If this is not possible could someone please tell me if its possible to use <logic:iterate> with an array of objects like I was attempting to do initially so that I could use <logic:match> at least?
    Thanks to all of you for your time.

    Yes you can use the logic:iterate tag. I think you have to specify the type of the exposed variable though. I prefer the forEach loop.
    I think you are using the wrong attribute in the logic:match tag. You should be using the "name" attribute rather than "parameter"
    Parameter attribute refers you to a request parameter, and I pretty sure you don't want that.
    So given the collection of objects in the session attribute "result"
    This should loop through them all, and see if they start with the letter 'Y'
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match name='myResults' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>As for the latter bit, are you using a JSP2 container and JSTL1.1? It would appear so seeing as you are trying to use EL expressions in the logic:match tag.
    If so, you could make use of the JSTL function library:
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
       <c:if test='${fn:startsWith(myResults.pin, "Y")}'>
          <c:out value="${fn:substring(myResults.pin, 1, -1)}"/>
        </c:if>
    </c:forEach>And I've just spotted a very cool function in there: substringAfter
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
          <c:out value='${fn:substringAfter(myResults.pin, 'Y')}'/>
    </c:forEach>Cheers,
    evnafets

  • How to set default preset for Save for Web

    Following the demise of my laptop, I have installed PSE8 (Windows) on my new one.
    On my old machine, the default preset for Save for Web was JPEG High
    On the new installation, the default is GIF and you have to manually scroll through the presets every time to apply the JPEG High preset.
    Is it possible to change the default preset.  If so, how.
    Thank you

    That faq from John R Ellis has not been updated, but may be useful:
    Photoshop Elements 6/7/8 Frequently Asked Questions (FAQ)

  • What is the equivalent for 'On Change of' Event in ABAP OBJECTS?

    What is the equivalent for 'On Change of' Event in ABAP OBJECTS?  and how to use it in LOOP control?

    hi,
    There is no such Equivalent in OO ABAP.
    You have to Raise your own Event within tha class checking the value of the field whose value is changing.
    Regards
    Sumit Agarwal

  • Keyboard shortcut for "Save a Copy" in Acrobat 9 Pro?

    I cannot find a keyboard shortcut for Save a Copy in Acrobat 9.3.2. THere's nothing in the help docs.
    Even more bizarrely, the idiots who designed the GUI assigned the y shortcut on the File menu to both "Modify PDF Portfolio" *AND* "Save a Copy", so hitting Alt + f, y performs only the former not the latter.
    Any ideas or am I SOL?
    Thanks.

    Hi Dan,
    "Save a Copy" is Adobe Reader.
    It is not associated with Acrobat Professional's "File" drop-down.
    fwiw –
    For Acrobat Pro 9; a link to a free downloadable 13 x 19 poster in PDF format (for Windows and Mac) is at:
    http://help.adobe.com/en_US/Acrobat/9.0/Professional/WS58a04a822e3e50102bd615109794195ff-7 aee.w.html
    Be well...

  • Script for Save Options- Save Query Results with document

    Hi,
    Is there any javascript for Save query results with document in save options? If so where can i find that?
    Thanks
    Kalai

    hi guys,
    I found the answer.The following example shows you how to save the results with the query
    section named “SalesQuery”.
    ActiveDocument.Sections["SalesQuery"].SaveResults=true

  • Don't ask for save when close the file

    Hi,
    Maybe you all meet a situation that, if you edit the pdf form with adobe reader or acrobat and close it, it will jump out a window and ask "do you want to save the change before closing?".
    Does anybody know how to cancle this asking?
    Could you share me how to advoid asking for save when close the pdf form?
    Thank you all!!!
    Ellie

    Hi,
    I created a pdf form by Adobe LiveCycle, inside, there is a button that you can click it and export the data(not script) of PDF to xml file. So I don't need to save the PDF form again.
    I try to edit my form by adobe reader, after I fill in some fields and close it, a window jumps out and asks if I want to save the changes, So how can I avoid this window?
    Thanks!
    Ellie

  • Creating a template in Pages is straight-forward as answered here previously. Is there and equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template?

    Creating a template in Pages is straight-forward as answered here previously. Is there an equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template? This has proved unsatisfactory to me so far. Lines are left in etc.

    There are two basic menus for fonts - one from the main menu bar and one from the toolbar. You can also bring up the font manage dialog.
    I don't recommend trying to hard to force an otherwise foreign font, as it inevitably needs to be usable/supported on iOS as well, and that can get tricky w/3rd party fonts, as an example, even with the expanded font support in the latest iBA.
    If you need to discuss fonts more, I suggest starting a new thread....preferably with a slightly more brief title, thanks.

  • HDD Health: How to check it? HD Tune Pro equivalent for Mac?

    hi all, i was just wondering if there's a Mac equivalent for HD Tune Pro. it's a Windows app i use to check for errors on hard drives. i want to check if an externall 1TB HDD has any bad sectors on it before i use time machine to backup my work. i want something that'll check for any small error -- i don't want something that'll just do a basic scan.
    thank you         

    ThunderCon wrote:
    but there's software that can do it on Windows so there must be something on the Mac.
    DiskUtility, DiskWarrior, TechTools, Genius, etc. etc. just do a google search. Most are paid apps except DiskUtility which is already built in and can be accessed from your reinstall partition. I personally don't bother with any except DiskUtility, but do keep a copy of DiskWarrior on hand just in case.
    Developers will convince you that you need all sorts of programs to check and repair most often manufactured disc ailments, but if you are one of those happy to pay, then that is your choice.
    Good Luck
    Pete

  • HT4967 Mobile Me was so handy. I pushed the little sync button and everything updated. Is there any equivalent for I Cloud?

    Mobile Me was so handy. I pushed the little sync button and everything updated. Is there any equivalent for I Cloud?

    Welcome to the Apple Community.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage. (not all these alternatives offer all the services previously provided by iDisk)

  • PL/SQL equivalent for networkdays function

    Hi,
    Is anyone aware of a PL/SQL equivalent for the Excel "networkdays" function, that returns the number of whole workdays between 2 dates?
    Thanks!
    Phil

    To calculate the number of days between january 1st and today, use the following.
    1* select trunc(sysdate) - trunc(to_date('01-jan-05')) from dual
    SQL> /
    TRUNC(SYSDATE)-TRUNC(TO_DATE('01-JAN-05'))
    58

  • App.Alert for "Save As" Actions

    Hi,
    I am trying to set up an app.Alert for the "Save As" menu action. I do not want the alert to appear when the User "Saves", only on "Save As".
    The app alert will be a warning, with an "OK" button, allowing the User to proceed with the "Save As" process.
    Thanks in advance,
    Niall

    Hi,
    Would anyone have any solutions for this problem?
    I have put in script to objects, but not within the inner workings of Lifecycle Designer.
    I need to get this Warning Message working for Save As event.
    Any help gratefully received.
    Thanks,
    Niall

  • In Listcube tcode User specific Option disable for Save as Layout

    In Listcube tcode User specific Option disable for Save as Layout

    Yes...
    We want to disable global setting option...
    So we remove the s_alv_layo AUTHORIZATION OBJECT. It removes saving layout option from Listcube
    Do you know how we can disable Default setting option and enable user specific option?

Maybe you are looking for

  • Why won't my plantronics 780 headphones work with itunes?

    I have plantronic 780 headphones, the kind that plug in to a USB drive, and It is selected as my only default "speaker" on my actual computer but for some reason Itunes won't play any of my music because I disabled my speakers on the computer.  Tryin

  • Import JBuilder into Sun Java Studio Enterprise 8

    I have a few JBuilder projects that I would like to import into SJSE8. I have read all the guides for migrating projects from JBuilder but I cannot see how I actually get the Import Project module. SJSE8 is supposed to be built on NetBeans5.5 but whe

  • I want to change the massage text of the error code C2039

    I want to change the massage text of the error code C2039. Currently its coming in production order release as C2039: Release rejected (check log). I tried in OPJB but didnu2019t allow me to change the error massage text. Can someone let me know the

  • HT202213 Home Sharing icon does not show up after hitting "done" when following steps to set up homesharing

    After upgrading to new itunes application I attempted to set-up home sharing between my macpro lap top and my imac. Used same apple id on both machines. When I turn on home sharing the icon shows up in menu. When I hit "done" icon disappears and ther

  • Inconsistencies with Navigation Attributes

    Hello all, We are experiencing some inconsistencies with navigation attributes. Attributes are flagged as navigational on the InfoObject Level and also selected in the InfoProvider's Navigation Attributes folder. However some of them are showing in t