Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF stamp and WaterMark - Not showing as expected for PDFs generated from chrome #39

Closed
ekanna opened this issue Sep 14, 2018 · 9 comments
Assignees

Comments

@ekanna
Copy link

ekanna commented Sep 14, 2018

Hi,

For pdf generated from excel, stamp and watermark is showing as expected.
But pdf generated from chrome browser "print save as PDF" option, stamp and watermark is not showing properly.

Please find attached PDF files.

chrome.pdf
chrome_new.pdf
excel.pdf
excel_new.pdf

Thanks

@hhrutter
Copy link
Collaborator

hhrutter commented Sep 14, 2018 via email

@hhrutter hhrutter self-assigned this Sep 15, 2018
@hhrutter
Copy link
Collaborator

Which OS and Chrome version are you using?

I am using the latest Chrome (69.0.3497.92) on MacOS and it looks good to me.
(see the attached mg_new.pdf)

@ekanna
Copy link
Author

ekanna commented Sep 16, 2018

MacOS version 10.13.3
Chrome latest version 69.0.3497.92

I have tried again but getting same result.
I have noticed another new issue. Please find attached pdfs.

github.pdf
github_new.pdf

Thanks

@hhrutter
Copy link
Collaborator

hhrutter commented Sep 18, 2018

You are right. There is definitely something weird going on with Chrome generated PDFs and stamping.

@hhrutter
Copy link
Collaborator

This is related to Type3 font usage.

I am having a hard time reproducing your PDFs and need your help:

Inspecting your PDFs they show:

Producer: Skia/PDF m68
Creator: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

The PDFs I create with Chrome on my Mac all show:

Producer: Mac OS X 10.13.6 Quartz PDFContext
Creator: Chrome

I am wondering what's different here.
How exactly do you generate your PDF out of Chrome?
There are several options like Open PDF in Preview, Print using system dialogue and from there Open in Preview and Save as PDF

Any PDF produced by Mac OS X 10.13.6 Quartz PDFContext does not cause any problem with pdfcpu for me.

@ekanna
Copy link
Author

ekanna commented Sep 24, 2018

Screenshots of how i generate PDF. And also find attached PDF generated

screen shot 2018-09-24 at 12 34 02 pm

screen shot 2018-09-24 at 12 34 16 pm

PDF stamp and WaterMark - Not showing as expected for PDFs generated from chrome · Issue #39 · hhrutter_pdfcpu.pdf

Thanks
Koti

@ekanna
Copy link
Author

ekanna commented Sep 24, 2018

How to check for this info? Is there any easy way?

Producer: Skia/PDF m68
Creator: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Thanks
Koti

@hhrutter
Copy link
Collaborator

Sure. Open the PDF with Preview and then Show Inspector.

@hhrutter
Copy link
Collaborator

fixed with v0.1.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants