Printing to PDF Produces Overlapped Content

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Printing to PDF Produces Overlapped Content

Postby habuleil » Mon Jul 10, 2023 4:05 am

Hi

I am using 112.3.0+gb09c4ca+chromium-112.0.5615.165.

I am having problem with the saved content when I save a pdf through a CEF based browser. This problem occurs with specific pdfs only.
The pdf I am using is made of 1 landscape page that has words and straight horizontal lines in it as content .

The Instructions I go through:
  1. Open the redirected PDF on a CEF based browser.
  2. Click on the "Print" button.
  3. Choose "Microsoft Print to PDF" as the printer.
  4. Click on "Preferences".

    1. Change the "Orientation" from "Portrait" to "Landscape".
    2. Click on "Advanced".
      1. Change the "Paper Size" from "Letter" to "A4".
      2. Click on "Ok".
    3. Click on "OK"
  5. Click on "Print".
  6. Enter any name and choose any path.
  7. Make sure that the type of the saved file is "PDF Document (*.pdf)"
  8. Click on "Save".
This results in a saved pdf in a Landscape Mode, A4 sized with the content I had but some of it (some straight horizontal lines) is placed on the wrong x/y coordinates (overlapped with other content -some words-) and the content (the straight horizontal lines) size got smaller.


Thanks in advance
habuleil
Newbie
 
Posts: 4
Joined: Mon Jun 05, 2023 4:30 am

Re: Printing to PDF Produces Overlapped Content

Postby magreenblatt » Mon Jul 10, 2023 5:01 am

How does it behave in Google Chrome at the same version?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Printing to PDF Produces Overlapped Content

Postby habuleil » Mon Jul 10, 2023 10:10 am

It saves the pdf just fine without any overlapping or any other problem.
habuleil
Newbie
 
Posts: 4
Joined: Mon Jun 05, 2023 4:30 am

Re: Printing to PDF Produces Overlapped Content

Postby magreenblatt » Mon Jul 10, 2023 10:28 am

Try running CEF with “--enable-print-preview”. Does it print correctly in that case?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Printing to PDF Produces Overlapped Content

Postby habuleil » Wed Jul 12, 2023 10:08 am

I tried running it with “--enable-print-preview". This time the print preview window has popped up, I followed the same steps I used on Google Chrome but the print result is still overlapped (same bad behavior).
habuleil
Newbie
 
Posts: 4
Joined: Mon Jun 05, 2023 4:30 am

Re: Printing to PDF Produces Overlapped Content

Postby obalash » Mon Oct 16, 2023 9:04 am

For anyone encountering this issue in the future. the problem was with sandbox mode being disabled.
obalash
Techie
 
Posts: 16
Joined: Wed Oct 05, 2016 9:18 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 157 guests

cron