Hello,
could someone help me to fix standard pdf format for warehouse (as the table data overwrite the table header) as per attached screenshot
What dolibarr version? I’ve just tested on my v14.0.4 and everything is OK.
Did you make some changes to the template or /core/lib/pdf.lib.php?
Do you have some external module that can mess with the pdf generation?
Thank you for your prompt reply
I’m using ver 14.05
I didn’t make any changes at all
I don’t have any external modules
I, too, am trying to understand Dolibarr’s PDF generation functionalities. I am using Dolibarr’s alpha release. In core/module/stock/doc/pdf_standard.modules.php, below these lines:
// Show list of linked objects
$current_y = $pdf->getY();
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'R', $default_font_size);
if ($current_y < $pdf->getY()) {
$top_shift = $pdf->getY() - $current_y;
}
temporarily add this line for debugging:
$pdf->writeHTMLCell(190, 2, $this->marge_gauche, $nexY, '<b>$top_shift : </b>'.$top_shift, 0, 1);
What does “$top_shift” say in the generated PDF?
Dear skyq0u0sm
OK I’ll try it
I notice that my format issue appears only if I have 30 rows or more in stock, if items less than that pdf is ok
i need help to reduce number of rows per page to 25 row maximum
Is your original screenshot from the first page of the PDF?
Yes, this is from first page
I would like to help and assist with the development of Dolibarr, but I don’t know much PHP, and from looking at the code, it looks too complicated for me. I’m struggling to understand it! I don’t know the cause of the problem after looking at the debug value in the screenshot. I can confirm that I also get visual problems with overlapping elements when the generated PDF becomes more than one page, but mine are on the second page.
Thank you skyq0u0sm for your try I really appreciate it
Let us wait to see if the dolibarr developing team will be able to fix this issue
I’ll report it as a bug on the bugs tool
Hello,
Do you report it on GitHub ?
Hello ksar,
Not yet i’ll do that by Wednesday noon Egypt time.
I have couple of other bugs and suggestions i’ll submit them too
Hello ksar,
the issue reported in GitHub # #20024
Hi
It seems that you modified one of the parameters of new page.
Hi mcdowray,
Thanks for your reply
I didn’t make any changes at all.
I test it on two different installations and same issue, plus as you can see @skyq0u0sm replies he had the same issue once you have more than 1 page







