Changing the PDF version of the merged PDF

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v5)  /  Changing the PDF version of the merged PDF

DynamicPDF CoreSuite for .NET (v5) Forum

Hi there,

Can you tell me if it is possible to set what version of PDF the final merged pdf writes out too? 

For example if I want the final merged PDF to be fully compatible with Adobe Acrobat 5.0 (PDF 1.4) is there a parameter or option I can set to do this?

What version of PDF does Merger write out too by default?

Thank you
Posted by a ceTe Software moderator
Hello,

The Merger product will create the PDFs with PdfVersion 1.4 as default. However you can change this to other versions using the PdfVersion enumeration. Below is a sample code for this.

   MergeDocument document = new MergeDocument((@"C:\Temp.pdf");
   document.PdfVersion = PdfVersion.v1_4;
   document.Draw(@"C:\TempOut.pdf");

Thanks,
ceTe Software Support Team.
Does this mean if you merge in a 1.6 or 1.7 PDF file that has elements specific to those specifications (for example interactive fields and such) they will be flattened or optimized so that the final PDF is at least viewable by, for example, Acrobat 5?
Posted by a ceTe Software moderator
Hello,

When merging a PDF we will retain its version, we merge the PDF as it is. So merging a PDF with version 1.7 will give the output PDF also with v1.7. If you set the PDF version to a lower version through code then the latest features may not work properly.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 12:43 AM.