If I have a PDF form and I have an XML file what is the easiest and fastest way to save a flattened PDF form which has the merged XML data in the form? I want to create a new pdf flattened form as quick as possible and I want to do it programmatically with no user intervention.
================================
Is it possible to flatten the PDF but exclude the first page of the pdf in the flattened file?
================================
>>If I have a PDF form and I have an XML file what is the easiest and
>>fastest way to save a flattened PDF form which has the merged XML data
>>in the form? I want to create a new pdf flattened form as quick as
>>possible and I want to do it programmatically with no user intervention.
You can call PDFForm_MergeFDFIntoPDF() function to merge FDF and PDF file together, you can call PDFForm_FlattenPDF() function to flatten the PDF file, this method is the easiest and fastest way, for example,
PDFForm_SetLicenseKey("XXXXXXXXXXXXXXX");
bRet = PDFForm_MergeFDFIntoPDF(szInPDFFile, szInFDFFile, szOutPDFFile);
bRet = PDFForm_FlattenPDF(szOutPDFFile,szFlattenPDFFile);
>>Is it possible to flatten the PDF but exclude the first page of the pdf in the flattened file?
PDF Form Filler SDK hasn't an option to exclude the first page of the PDF file during flatten, PDFForm_FlattenPDF() function will flatten the all pages automatically.
VeryPDF