Answer the question
In order to leave comments, you need to log in
How to align div blocks in pdf?
Now I am making price tags for goods, the page is generated in pdf, in the price tags there is a big name somewhere small because of this, most of the blocks are uneven (the text fits in the block and does not go beyond), tell me what style to apply to the blocks so that they are even ?
<div class="photo">
<br>
<p style = "font-size:10px;" class="ph_cvl">Спортивные брюки
с толстым начёсом
"Venom", серые 7
(маркировка 4)</p>
8585858585<br>
<h4> 15</h4><b>руб.</b>
<br>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
In order to advise something, you need to know the specific library, the program that does
the html to pdf conversion for you. In most cases, this is a big simplification
from the standard browser.
I hope you understand that there are no divs in pdf anymore.
The closest thing to understanding the structure of a pdf is the PostScript format for a printer.
Draw a line from the coordinates of such and such to the coordinates of such.
Display the text in font with name such and such , size such and such from this coordinate.
Draw a picture in a square.
All coordinates and sizes are described in points (1/72 inch)
Hence the consequence, either generate pdf directly or adjust the layout according to how the converter can digest it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question