Hello, I have been using podofo -0.9.6 with the PdfStreamedDocuement to make reports about sensors for a project I am working on. I am creating headers and footers for each page and tables with titles to report the information to the user. The header and footer that is used has the same text and images contained in them on every page. In the footer, I also have the current page number and total page count.
Currently I am calculating what the total pages in the report will be and adding all the text and images for the headers and footers to each page. This works fine but I would rather setup the header and footer and just have each page of the pdf document reference those objects. I would also like to reference, in the page, a total page object in each page dictionary and then add the total page number to that object at the end of the pdf, before the Xref table. An example would look like this where object 9 is the total page number: %PDF-1.6 1 0 obj << /Kids [2 0 R 3 0 R] /Type /Pages /Count 3 >> endobj 4 0 obj << >> stream BT /F0 36 Tf 1 0 0 1 50 700 Tm (Page Rob) Tj ET endstream endobj 10 0 obj << >> stream BT /F0 18 Tf 1 0 0 1 30 40 Tm (1) Tj BT endstream endobj 11 0 obj << >> stream BT /F0 18 Tf 1 0 0 1 30 40 Tm (2) Tj BT endstream endobj 12 0 obj << >> stream BT /F0 18 Tf 1 0 0 1 30 40 Tm (3) Tj BT endstream endobj 2 0 obj << /Rotate 0 /Parent 1 0 R /Resources << /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >> /MediaBox [0.000000 0.000000 595.275590551 841.88976378] /Type /Page /Contents [4 0 R 10 0 R 9 0 R] >> endobj 5 0 obj << /PageLayout /SinglePage /Pages 1 0 R /Type /Catalog >> endobj 6 0 obj << /Rotate 0 /Parent 3 0 R /Resources << /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >> /MediaBox [0.000000 0.000000 595.275590551 841.88976378] /Type /Page /Contents [4 0 R 12 0 R 9 0 R] >> endobj 3 0 obj << /Parent 1 0 R /Kids [7 0 R 6 0 R] /Count 2 /Type /Pages >> endobj 7 0 obj << /Rotate 0 /Parent 3 0 R /Resources << /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >> /MediaBox [0.000000 0.000000 595.275590551 841.88976378] /Type /Page /Contents [4 0 R 11 0 R 9 0 R] >> endobj 9 0 obj << >> stream BT /F0 18 Tf 1 0 0 1 40 40 Tm (/3) Tj ET endstream endobj 8 0 obj << /Title (Robs Test of Relative) /Author (Rob) /Producer (Manually Created) /ModDate (D:20190711002346Z) /CreationDate (D:2019) >> endobj xref 0 13 trailer << /Info 8 0 R /Root 5 0 R /Size 13 /ID [<75ff22189ceac848dfa2afec93deee03> <057928614d9711db835e000d937095a2>] >> startxref 0 %%EOF Thank you, Robert
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users