# Overwrite background image (using background package) by PDF (using pdfpages package)

I just want to see the PDF clearly. Is there a way to overwrite the background image (jpg file) by the PDF using pdfpages package? Or is there a way to use opacity for the PDF separately?

\documentclass{book}
\usepackage{graphicx}
\usepackage[paperwidth=11.7in, paperheight=8.3in]{geometry}
\usepackage{background}
\usepackage{pdfpages}

\backgroundsetup{
position={5.4125in,-3.5in},
scale=.9,
angle=-.5,
opacity=0.2,
contents={\includegraphics{ImageName}}
}

\begin{document}

\includepdf[pages=-]{filename}

\end{document}

• Can you elaborate the exact output you require. Here, first pdf content is loaded then the image with the defined opacity. What else is required? – subham soni Feb 20 at 7:45
• I want to put the PDF file over (above) the background. It seems that the background opacity changes the visibility of the PDF. Again, PDF included with the pdfpages package produces the PDF file as a background. I want the file in PDF format displayed over the background image clearly. – Tammo Feb 20 at 7:52
• It may be noted that the PDF file to be included contains only the words typed in LaTex only. – Tammo Feb 20 at 7:55

This should work for you. Please add further queries to the comments so that I can enhance it as per the requirement:

\documentclass{article}
\usepackage[paperwidth=11.7in, paperheight=8.3in]{geometry}
\usepackage[pages=some]{background}
\usepackage{pdfpages}

\backgroundsetup{
scale=0.9,
opacity=0.2,
angle=-.5,
position={5.4125in,-3.5in},
contents={%
\includegraphics[width=\paperwidth,height=\paperheight]{Small-mario.png}
}%
}
\begin{document}
\BgThispage
\includepdf[pages=-]{Test2}
\clearpage
\end{document}


• It seems that as the opacity of the background increases, the visibility of the text (imported by pdfpages) decreases. I want to avoid it. – Tammo Feb 20 at 8:05
• What is the value of opacity you are using – subham soni Feb 20 at 8:07
• When opacity becomes bigger like 0.5, the visibility of the text decreases. – Tammo Feb 20 at 8:09
• When the opacity of the background is 0.9, the text of the imported PDF becomes almost invisible. Isn't it? It seems that the opacity of the background affects the imported PDF. – Tammo Feb 20 at 13:05
• Yes it is observed. Unfortunately, I don't see any option to change opacity of pdf content. – subham soni Feb 20 at 13:17