'Remove default white space document itext 7
i use itext 7.1.9 for create the carrier lable bill. i want my bill have full with and height of the document, i set with table 100 percent or large width but my document still have something like default padding, i want to remove it. How can i do it. This is my result
And i want to remove white space here
Here is my code
Solution 1:[1]
You can set the margins of a document by calling setMargins(top, right, bottom, left)
on the document. Just pass all 0s for no margins.
Alternatively, you can set each margin individually with, for example, setTopMargin(value)
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Indigorune |