Dear Support,
I have requirement where I have to merge contents of two PDF pages to one page. I tried following piece of code, it merges but I am unable to scale/position the content. Is there a way or perhaps a sample that does the same.
private static void MergePages()
{
Document pageLabel = new Document(@“pdfLabel.pdf”);
Document pdfPackingSlip = new Document(@“PackingSlip.pdf”);
Page pagePackingSlip = pdfPackingSlip.Pages[1];
Page pageLabel = pdfLabel.Pages[1];
foreach (var content in pagePackingSlip.Contents)
{
if (content is Operator.ConcatenateMatrix)
{
var contentMatrix = content as Operator.ConcatenateMatrix;
//do something to transform to the destination
}
pageLabel.Contents.Add(content as Operator);
}
pdfLabel.Save(@“PackingSlip_Combo.pdf”);
}
Regards,
Assam Zafar.