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

RenderPage - Missing visual content #1

Open
blairs2 opened this issue Feb 22, 2022 · 1 comment
Open

RenderPage - Missing visual content #1

blairs2 opened this issue Feb 22, 2022 · 1 comment

Comments

@blairs2
Copy link

blairs2 commented Feb 22, 2022

Hello,

I'm attempting to render a pdf as an png image using the RenderPage.py script. The source pdf and the rendered png are visually different however. It appears that the png is missing certain content, such as the text boxes and yellow icon. Is it possible these elements are on a different layer or container that isn't being rendered? Any suggestions?

Thank you,

source.pdf
result

@jozefbaranec
Copy link
Contributor

What's missing in the output are annotations. Add the following flag to the PdfPageRenderParams to include them

renderParams = PdfPageRenderParams()
renderParams.flags = kRenderAnnot

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