[XeTeX] cannot include pdf page
Pablo Rodríguez
oinos at web.de
Mon Jan 11 22:22:53 CET 2010
On 01/11/2010 09:32 PM, Alan Munn wrote:
> At 9:02 PM +0100 1/11/10, Pablo Rodríguez wrote:
>> Hi there,
>>
>> trying the following document:
>>
>> \documentclass{article}
>> \usepackage[xetex]{graphicx,xcolor}
>> \begin{document}
>> \pagecolor{black}
>> \includegraphics[page=1,scale=.5]{dmca}
>> \end{document}
>>
>> I get the following error:
>>
>> ** WARNING ** DecodeFilter "LZWDecode" not supported.
>> ** WARNING ** Could not handle a content stream.
>> ** WARNING ** pdf: image inclusion failed for "./dmca.pdf".
>>
>> The file is
>> http://frwebgate.access.gpo.gov/cgi-bin/getdoc.cgi?dbname=105_cong_bills&docid=f:h2281enr.txt.pdf.
>>
>>
>> Is there any way to avoid it?
>
> On this error, try redistilling the pdf:
>
> pdf2ps dmca.pdf dmca.ps
> ps2pdf dmca.ps dmca-fixed.pdf
Alan, many thanks for your help.
Printing it with evince seems a better choice, since the output was
smaller than the original file and ten times smaller than the pdf2ps &
ps2pdf conversion.
>> BTW, since the background color of the included PDF is transparent, text
>> from inserted document would be invisible.
>>
>> Is there any way to set the background color of the inserted document
>> and not of the document page?
>
> Try putting your includegraphics command inside a colorbox:
>
> \colorbox{red}{\includegraphics[scale=.5]{dmca-fixed.pdf}}
>
> (I used red so that I could see what was going on.)
Many thanks again. This was exactly was I needed.
Pablo
More information about the XeTeX
mailing list