Reputation: 21
There are two PDF-documents - A.pdf and B.pdf. They have the same page size. I add an object Phrase to the page in both documents.
Stamper_A:=New PdfStamper(reader_A,
New System.IO.FileStream(
out_file1,
System.IO.FileMode.CreateNew));
ContentByte_A:=Stamper_A.GetOverContent(2);
ColumnText.ShowTextAligned(
ContentByte_A,
Element.ALIGN_LEFT,
phrase,
75,
680,
0);
Stamper_B:=New PdfStamper(reader_B, New System.IO.FileStream(out_file2, System.IO.FileMode.CreateNew));
ContentByte_A:=Stamper_B.GetOverContent(2);
ColumnText.ShowTextAligned(ContentByte_B, Element.ALIGN_LEFT, phrase, 75, 680,0);
But in the document out_file1 Phrase is higher than in the document out_file2. Why is this happening?
Upvotes: 0
Views: 3375
Reputation: 77528
A.pdf and B.pdf have either a different MediaBox and/or a different CropBox.
Upvotes: 2