[Dev-luatex] LuaTeX 1.10.0 cannot embed properly PDFs with 4-bit images

L. E. Segovia amy at amyspark.me
Wed Dec 4 10:36:27 CET 2019


Ghostscript as well, it's what I've been using to process my own invoices.

Best regards,

Leonardo

On 04/12/2019 09:23, Hans Hagen wrote:
> On 12/4/2019 3:31 AM, L. E. Segovia wrote:
>> Hello,
>>
>> I would like to report that since TeX Live 2019, LuaTeX is unable to 
>> embed properly a certain type of image I have.
>> These sort of images are embedded in the PDFs generated by the tool 
>> "Comprobantes en línea" of Argentina's IRS (Administración Federal de 
>> Ingresos Públicos, https://www.afip.gob.ar).
>>
>> This is an example: 
>> https://comunadealvear.gob.ar/wp-content/uploads/2017/03/30710518803_01_0002_00000009.pdf 
>> (or just search online for the string "Esta Administración Federal no 
>> se responsabiliza por los datos ingresados en el detalle de la 
>> operación").
>>
>> Embed this file using the following snippet:
>>
>> \documentclass{article}
>> \usepackage{luatex85}
>> \usepackage{incgraph}
>>
>> \begin{document}
>> \incgraph{30710518803_01_0002_00000009.pdf}
>> \end{document}
>>
>> Where the white-and-grey AFIP logo appears in the original, LuaTeX 
>> instead embeds a grey-on-grey image, probably by messing with the 
>> alpha channel.
>>
>> I have consistently reproduced this on every update since the 2019 
>> release. XeLaTeX and pdfTeX do not have this issue.
>>
>> Please let me know if I can be of more assistance. I hope I've posted 
>> to the right mailing list.
> Either remove the encryption or set the flags so that content might be 
> extracted.
> 
> acrobat shows no permissions other than printing ... so basically pdftex 
> and xetex are violating this; qpdf shows
> 
> R = 3
> P = -1852
> User password =
> extract for accessibility: not allowed
> extract for any purpose: not allowed
> print low resolution: allowed
> print high resolution: allowed
> modify document assembly: not allowed
> modify forms: not allowed
> modify annotations: not allowed
> modify other: not allowed
> modify anything: not allowed
> 
> if you remove the encryption (which of course is also illegal) then the 
> document can be included
> 
> Hans
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


-- 
Leonardo E. Segovia
https://www.amyspark.me


More information about the dev-luatex mailing list