Page 1 of 1

Page to PDF Inconsistencies

Posted: June 24th, 2022, 6:24 pm
by JefferyD
  1. CSS media queries seem to not being applied.
    Looking through the page and the HTML that the ViewToPDFFile service generated, this part of the CSS seems to not being applied even though I've set the PDF width over the min-width threshold.
    image.png
    image.png (12.72 KiB) Viewed 717 times
    image.png
    image.png (12.72 KiB) Viewed 717 times

    With the media query, the page displays the menu like this:
    image.png
    image.png (4.4 KiB) Viewed 717 times
    image.png
    image.png (4.4 KiB) Viewed 717 times

    Yet the PDF displays the menu like this:
    image.png
    image.png (5.25 KiB) Viewed 717 times
    image.png
    image.png (5.25 KiB) Viewed 717 times
  2. The width seems shifted slightly to the right for a reason I cannot determine.

    The border of this section is centered on the page:
    image.png
    image.png (4.58 KiB) Viewed 717 times
    image.png
    image.png (4.58 KiB) Viewed 717 times
    Yet it's closer to the right edge of the PDF than the left:
    image.png
    image.png (4.49 KiB) Viewed 717 times
    image.png
    image.png (4.49 KiB) Viewed 717 times
  3. As EASYProcess does not support custom attributes or colspan/rowspan, I'm currently handling these with javascript which is not retained in the PDF.

    The colspan is applied to make sure the description is under the correct header:
    image.png
    image.png (9.27 KiB) Viewed 717 times
    image.png
    image.png (9.27 KiB) Viewed 717 times
    But the PDF does not use the colspan when it's applied using the javascript approach:
    image.png
    image.png (9.23 KiB) Viewed 717 times
    image.png
    image.png (9.23 KiB) Viewed 717 times

Re: Page to PDF Inconsistencies

Posted: June 29th, 2022, 9:00 am
by SteveCap
Task #10577 has been created. This post will be updated when it has been completed.