Set background color? #131

Closed
opened 2 years ago by Ghost · 1 comments
Ghost commented 2 years ago

I would appreciate the option to set the background colour when the page size is larger than the image size. At the moment it is all white by default. But what to do if you need a different color?

I would appreciate the option to set the background colour when the page size is larger than the image size. At the moment it is all white by default. But what to do if you need a different color?
josch commented 2 years ago
Owner

At the moment it's actually not all white but all transparent.

I'm afraid though, that I don't know enough to implement this. Patches are welcome.

Until then, you can achive the same thing using LaTeX:

\documentclass{minimal}
\usepackage{xcolor}
\pagecolor[HTML]{FF0000}
\usepackage{pdfpages}
\begin{document}
\includepdf[fitpaper,pages=-]{/path/to/your.pdf}
\end{document}
At the moment it's actually not all white but all transparent. I'm afraid though, that I don't know enough to implement this. Patches are welcome. Until then, you can achive the same thing using LaTeX: ``` \documentclass{minimal} \usepackage{xcolor} \pagecolor[HTML]{FF0000} \usepackage{pdfpages} \begin{document} \includepdf[fitpaper,pages=-]{/path/to/your.pdf} \end{document} ```
josch closed this issue 11 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#131
Loading…
There is no content yet.