Dotted lines, phantom lines are not printed from PDF files (if used with --no-sandbox) #3776
Replies: 6 comments 21 replies
-
I'm converting this to a discussion as PDF printing isn't implemented in CefSharp and is not something that we can fix directly.
As per the bug report temple, please test with the latest stable version before opening an issue. Version 92.0.260 is based on Chromium 92.0.4515.159 |
Beta Was this translation helpful? Give feedback.
-
I just tried the minimal build as you explained to me and the results are similar dotted lines are out off scale and missplaced. I will put a pdf as example. I have thousands of pdf in my library.Thank you for help,
-------- Original message --------From: Alex Maitland ***@***.***> Date: 8/30/21 16:08 (GMT-05:00) To: cefsharp/CefSharp ***@***.***> Cc: emitclever ***@***.***>, Author ***@***.***> Subject: Re: [cefsharp/CefSharp] Dotted lines, phantom lines are not printed
from PDF files (#3776)
You can test with https://github.com/cefsharp/CefSharp.MinimalExample
Restore the Nuget packages, close visual studio, reopen and then rebuild.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#3776 (reply in thread)",
"url": "#3776 (reply in thread)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Beta Was this translation helpful? Give feedback.
-
tested with x32 and x64 from https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#cefsharp-vs-chromium-embedded-frameworkcef with same printing results |
Beta Was this translation helpful? Give feedback.
-
Quite correct. The chrome browser work well the only comparison that I could make at this moment.
-------- Original message --------From: Alex Maitland ***@***.***> Date: 8/31/21 18:43 (GMT-05:00) To: cefsharp/CefSharp ***@***.***> Cc: "Adrian L." ***@***.***>, Author ***@***.***> Subject: Re: [cefsharp/CefSharp] Dotted lines, phantom lines are not printed
from PDF files (#3776)
tested with x32 and x64 from https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#cefsharp-vs-chromium-embedded-frameworkcef with same printing results
So the problem reproduces with cefclient?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#3776 (reply in thread)",
"url": "#3776 (reply in thread)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Beta Was this translation helpful? Give feedback.
-
To summarize
cefclient.exe without args prints correctly the pdf. On the other hand with minimalexample code there is no args to comment out
I will try seek into code what can be done further tomorrow
… On Sep 1, 2021, at 3:26 PM, Alex Maitland ***@***.***> wrote:
You need to isolate which command line argument causes the problem with cefclient.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#3776 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACWVQLYJQUG2TOHAIEBKKLTT7Z473ANCNFSM5C6FVU7Q>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately enabling the sandbox is not practical when running from .net, it requires statically linking of cef_sandbox.lib. https://bitbucket.org/chromiumembedded/cef/wiki/SandboxSetup#markdown-header-windows In theory you could create a native exe and bootstrap the .Net runtime manually, additional changes to CefSharp would also be required. I've never found time to test the theory. You can test in Chrome with the same command line argument, if the problem reproduces then you can raise a bug at https://bugs.chromium.org/p/chromium/issues/list If it works in Chrome then hopefully this will be fixed when https://bugs.chromium.org/p/chromium/issues/detail?id=702993 is resolved. Practically speaking you might need to look into non CEF based browser alternative. |
Beta Was this translation helpful? Give feedback.
-
Bug Report
It is my first bug on github, I will try to explain simple as possible.
Description.
Initially we had using with success the 90.6.7 release but lately printing not working for dotted lines. Our application had no suffered any changes. Using Edge, Adobe Reader the dotted lines are printed but no trough CefSharp browser.
Additional: If we use to print with Chrome Version 92.0.4515.159 (Official Build) (64-bit) then these lines print out correctly.
initial image (as seen trough cef webbrowser)
after printing trough CEF webbrowser (scanned for results)
What architecture x86 or x64?
x64
What version of .Net?
4.5.2
On what operating system?
Win10
Are you using
WinForms
,WPF
orOffScreen
?WinForms
also tested some parameters without success
Beta Was this translation helpful? Give feedback.
All reactions