Copy link to clipboard
Copied
Hi,
I'm trying to convert an XFA PDF to a Flat PDF using the interop.acrobat dll API,
as of now i'm using the printing process which is working but makes a lot of other problems,
Is there a way to just save the PDF in as a Flat PDF format instead of printing?
I'm doing this with a C# code which suppose to work quietly in the back ground,
and not report on every print as of now.
My Code:
CAcroPDDoc pdDoc;
CAcroAVDoc avDoc;
mApp = new AcroAppClass();
mApp.Hide();
avDoc = new AcroAVDocClass();
if (avDoc.Open(pdfFile, ""))
{
pdDoc = (CAcroPDDoc)avDoc.GetPDDoc();
avDoc.PrintPagesSilent(0, pdDoc.GetNumPages() - 1, 0, 0, 0)
avDoc.Close(1);
}
mApp.CloseAllDocs();
mApp.Exit();
[Question moved to the Acrobat SDK forum. - Mod]
Have something to add?