Hello,
I am experiencing an issue with a specific PDF file supplied by a customer. My application merges multiple PDF file together using the following code:
Code:
using (PdfDocument objLoopedPDF = openPDFDocument(p_memDocument))
{
// Iterate pages
for (int i = 0; i < objLoopedPDF.PageCount; i++)
{
if (objLoopedPDF.Pages[i].Contents != null)
{
// ...and add it to the output document.
PdfPage objNewPage = m_objMergedPdf.AddPage(objLoopedPDF.Pages[i]);
}
}
}
If the source PDF has a page with Rotate set to 180 this appears to be 'copied' across to the objNewPage object via the AddPage() method. However, when viewed in a PDF viewer the page appears upside down.
I can address this by setting the Rotate property to 0 following the AddPage() method call but I'm not sure of the consequences and don't really see why I should have to. Is this a bug?
I am using version 1.32.2608.0.
Any help would be appreciated.
Regards,
Martyn