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

How to change the background color of the pdf? #48

Open
perteraul opened this issue May 29, 2021 · 5 comments
Open

How to change the background color of the pdf? #48

perteraul opened this issue May 29, 2021 · 5 comments

Comments

@perteraul
Copy link

No description provided.

@perteraul
Copy link
Author

I can set the color of the document, header and footer but I'd like to also style the background color of the full page.

@maxwelt99
Copy link

The PDF viewer stylesheet sets the background color to white with this:
.pdfViewer .page{background-color: white}

You can try to overwrite it with this:
.pdfViewer .page{background-color: #ff0000!important}

Of course this is not the best way to achieve this, and I know, we should not overwrite something if we can avoid it, but the white color in the viewer is generated by the viewer, not by the template. Therefore, this solution should to it until the feature is added.

@tycobbb
Copy link

tycobbb commented Nov 10, 2021

is there a solution for this? i don't think the above workaround works.

@tycobbb
Copy link

tycobbb commented Dec 12, 2021

any info on how to work around this from anyone at ia writer, @onebigclownshoe?

@antons
Copy link
Collaborator

antons commented Jan 5, 2023

Sorry about the late response! Unfortunately, due to the way templates are rendered it’s not currently possible to set a background color. We’ll keep this feature in mind as we improve templates in iA Writer.

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

No branches or pull requests

4 participants