I'm trying to copy a PDF using ABCpdf's AddImageDoc. Doesn't look like any document properties (like "/Rotate") get copied along. It looks like I have to copy these properties manually from old document to new using SetInfo method. Like so:
foreach page...{
newPdfDoc.Page = newPdfDoc.AddPage();
newPdfDoc.AddImageDoc(existingPdfDoc, i, null);
newPdfDoc.SetInfo(newPdfDoc.Page, "/Rotate", existingPdfDoc.GetInfo(existingPdfDoc.Page, "/Rotate"))
}
There are bunch of these properties and I don't want to set these manually. Is there a way to copy all the properties all at once?