Keywords: Microsoft Word, tables, format columns, resize, even, adjust columns Share This PostĬedarville offers more than 150 academic programs to grad, undergrad, and online students.
Now you'll see that the page contents also fit into the page's width (which now is 635 points (= 22.4 cm the original value of 595 points is equivalent to 21.0 cm). Replace its current value of by a new value of. It appears twice in the PDF, once for each page.
You can edit the original PDF with a text editor easily: nothing! It only defines the font to be used as the internal name /F1 and the font size as 10 points).
The overall source code of this PDF is, BTW, in some places very inefficient (for example it contains BT /F1 10.00 Tf ET 1.000 g more than 1000 times, but this code does exactly. But this would still leave the long horizontal lines of your drawn boxes spill beyond the right page border.) However, this long text line does not fit into the page's width given with /MediaBox, defined as (which is in PostScript points, and represents A4). This code snippets prints a very long line of text with a font internally named as /F2 (which in turn is mapped to /Helvetica-Bold elsewhere in the file), sized 10 points, starting at coordinates x=50, y=359.19. The following line prints some text on the page: BT \ Now the newly generated q.pdf is easily opened in a good text editor (like VIm, Emacs or Notepad++). I unpacked the /Content streams of the file in order to see PDF page drawing operators as ASCII, using this command: qpdf -qdf -object-streams=disable document.pdf q.pdf
What I wrote above is pure speculation.)Īfter having looked at the source code of the PDF provided in the link of the update to the OP, I can say this: (If you provide a PDF created by your code it would be a lot easier to debug. To test my assumption, you could replace the A4 in your html2pdf implementation by letter or Letter. You should check if your code utilizes a (probably hidden) setting that sets the page width (or complete page size) to letter (which would be 612x792 points). or your PDF's drawing/writing of /Contents code does not respect the A4 width and draws/writes beyond it. either your PDF's /MediaBox is more narrow than A4 (which is 595 points),