Set background color? #131

Closed
opened 2022-02-07 04:14:57 +00:00 by Ghost · 1 comment

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?
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 2023-06-09 04:51:46 +00:00
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
No description provided.