Is there away to convert an XFA PDF to a Flat PDF, using the interop.acrobat, without actually printing the document ?

New Here ,
Dec 16, 2018 Dec 16, 2018

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]

TOPICS
Acrobat SDK and JavaScript

Views

174

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation