Skip to main content
Participant
August 4, 2016
Question

How do you save a pdf as optimized with IAC?

  • August 4, 2016
  • 2 replies
  • 1270 views

I have a C# console app I've written to batch process pdf's and save them out as optimized. The only problem is I haven't found a definitive answer to the correct nType to get an optimized file. Here is my code.

pdDoc.Save(1 + 32, impoFile);

I believe 1 is PDSaveFull and 32 is PDSaveCollectGarbage.

Should I be also saving PDSaveLinearized?

Thanks.

This topic has been closed for replies.

2 replies

Legend
August 5, 2016

I didn't make myself clear, sorry. Plug-ins can do this. As a programmer you can create such a plug-in. I am not recommending you obtain someone else's.

barrykfmcAuthor
Participant
August 5, 2016

OK. Thanks for your help.

Inspiring
August 4, 2016

That depends on what you mean by optimized, exactly. Can you clarify what you're going for?

barrykfmcAuthor
Participant
August 5, 2016

I'm looking for the equivalent of going to the File menu and selecting Save as Other and Optimized with Standard settings. I'm using Acrobat Pro DC.

Legend
August 5, 2016

Although that appears under the Save menu it isn't the sort of save that you can do from IAC. There is no standard flag; rather a whole set of parameters are passed to an optimizing engine. A plug-in can do it.