[tex-live] Patch to pdfobj.c

Simon Cozens simon at simon-cozens.org
Fri Oct 5 12:17:31 CEST 2018


Hi!

I'm never sure who to contact about dvipdfm-x and associated code, but 
here is a patch which allows the PDF functions to be used more than once 
in an application. Nothing reset the byte counters, meaning that when 
the xref tables were written for PDFs after the first one, the numbers 
would be garbage:

diff --git a/pdfobj.c b/pdfobj.c
index 8323849..4b22662 100644
--- a/pdfobj.c
+++ b/pdfobj.c
@@ -455,6 +455,8 @@ pdf_out_flush (void)
      MESG("%ld bytes written", pdf_output_file_position);

      MFCLOSE(pdf_output_file);
+    pdf_output_file_position = 0;
+    pdf_output_line_position = 0;
    }
  }


More information about the tex-live mailing list