You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When your set margin on already open document they applied only on second page for text
To Reproduce
var document = new Document();
var writer = PdfWriter.getInstance(document, outputBuffer);
// step 2: open the document
document.open();
document.setMargins(100, 100, 100, 100);
document.newPage();
// step 3: add a paragraph to the document
document.add(new Paragraph("Hello World"));
document.newPage();
document.add(new Paragraph("Hello World 2"));
// step 4: we close the document
document.close();
Expected behavior
In example we must see two page with same margin
Your real name
Mikhail Mironov
The text was updated successfully, but these errors were encountered:
Describe the bug
When your set margin on already open document they applied only on second page for text
To Reproduce
Expected behavior
In example we must see two page with same margin
Your real name
Mikhail Mironov
The text was updated successfully, but these errors were encountered: