Skip to main content
Participant
December 16, 2018
Question

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

  • December 16, 2018
  • 0 replies
  • 618 views

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]

This topic has been closed for replies.