Hi, This is not really a bug, but it makes it effectively impossible to compare two PDFs, at least from a script. Here is a typical context diff, from 07-08-c3/widgets/xfdf-001.pdf.diff: *** 147,164 **** endobj 16 0 obj << ! /BaseFont /Times-Roman /Subtype /Type1 ! /Name /rmtf /Type /Font /Encoding 14 0 R >> endobj 17 0 obj << ! /BaseFont /Courier /Subtype /Type1 ! /Name /tttf /Type /Font /Encoding 14 0 R >> --- 147,164 ---- endobj 16 0 obj << ! /BaseFont /Courier /Subtype /Type1 ! /Name /tttf /Type /Font /Encoding 14 0 R >> endobj 17 0 obj << ! /BaseFont /Times-Roman /Subtype /Type1 ! /Name /rmtf /Type /Font /Encoding 14 0 R >> /Lars
On 9/4/2016 8:39 PM, Lars Hamren wrote:
Hi,
This is not really a bug, but it makes it effectively impossible to compare two PDFs, at least from a script.
hm, this has to do with the fact that lua hashes are randomized (relates to security) .. i'll try to get around that in the next beta for widgets but it's always possible that things get output in a different order btw, you probably want to run context with the --nodates --trailerid=1 option btw, can you move this discussion to the context mailing list as it doesn't relate that much to luatex itself
Here is a typical context diff, from 07-08-c3/widgets/xfdf-001.pdf.diff:
*** 147,164 **** endobj 16 0 obj << ! /BaseFont /Times-Roman /Subtype /Type1 ! /Name /rmtf /Type /Font /Encoding 14 0 R >> endobj 17 0 obj << ! /BaseFont /Courier /Subtype /Type1 ! /Name /tttf /Type /Font /Encoding 14 0 R >> --- 147,164 ---- endobj 16 0 obj << ! /BaseFont /Courier /Subtype /Type1 ! /Name /tttf /Type /Font /Encoding 14 0 R >> endobj 17 0 obj << ! /BaseFont /Times-Roman /Subtype /Type1 ! /Name /rmtf /Type /Font /Encoding 14 0 R >>
/Lars _______________________________________________ dev-luatex mailing list dev-luatex@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-luatex
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 09/04/16 23:02, Hans Hagen wrote:
This is not really a bug, but it makes it effectively impossible to compare two PDFs, at least from a script.
hm, this has to do with the fact that lua hashes are randomized (relates to security) .. i'll try to get around that in the next beta for widgets but it's always possible that things get output in a different order
Stands to reason. I had just found that the font was handled by lua code, by putting a GDB breakpoint at pdf_out_block(). Is there a way to get the lua call stack from GDB? Is it possible to inject LUA code from GDB? I think that it requires some support from the program, but may be wrong.
btw, you probably want to run context with the --nodates --trailerid=1 option
Definitely.
btw, can you move this discussion to the context mailing list as it doesn't relate that much to luatex itself
Will do. I have just requested membership. Cheers /Lars ------------------------------------------------------------------- Lars Hamrén WWW...: www.sdu.se Vadmöllan 211 Mobile: +46(705)189090 S-225 94 Lund Sweden
participants (3)
-
Hans Hagen
-
Lars Hamren
-
Lars Hamren