I have some pdf's that merge incorrectly. Using the following code, the output document contains a page with a height of 1.1 mm:
- Code: Select all
static void Main(string[] args)
{
try
{
TestDocA();
}
catch( Exception ex)
{
Console.Write(ex.ToString());
}
Console.ReadKey();
}
private static void TestDocA()
{
PdfDocument doca = new PdfDocument(@"C:\TestProd\HeightIncorrectInput.pdf");
PdfDocument mergedDoc = new PdfDocument();
mergedDoc.InsertPageRange(doca, 0, doca.Pages.Count - 1);
mergedDoc.SaveToFile(@"C:\TestProd\HeightIncorrectOutput.pdf");
}
Input and output files will be sent with e-mail, due to security reasons.
Kind regards,
Sikke Kooistra