print preview and pdf display

102 views
Skip to first unread message

Trung Pham Quoc

unread,
Nov 30, 2022, 4:39:47 PM11/30/22
to Chromium-dev
Hi team,
I am working on a problem on the print preview. My team is currently working on a Tor feature in premium and we have some trouble with the print preview, as  it never receive the pdf files created by the renderer. I cannot find in code where the pdf is displayed by the browser process so I cannot check whether the pdf file have been received by the browser or not. Do you guys have any suggestion where I should look for.

Lei Zhang

unread,
Nov 30, 2022, 4:46:23 PM11/30/22
to tru...@coccoc.com, Chromium-dev
On the browser side, the PDFs used for print preview are stored in
PrintPreviewDataService.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/9dcac79a-fc14-4b9a-b77d-bd2d32f0976cn%40chromium.org.

K. Moon

unread,
Nov 30, 2022, 4:54:14 PM11/30/22
to the...@chromium.org, tru...@coccoc.com, Chromium-dev
Within Print Preview itself, you can use DevTools to see the URL of the PDF being loaded (which, as Lei mentioned, comes from PrintPreviewDataService).

Reply all
Reply to author
Forward
0 new messages