I'm using this example: forums.mediabox.fr/wiki/tutoriaux/pao/construction_fichier_pdf for create a header for the pdf. The problem is that in my example I can only create a page, but I want 2 pages. I use this code in a separate file and include the example:
footer = "/PDF/f_pdf.lua"
header = "/PDF/h_pdf.lua"
fichier = "example.pdf"
h = io.open( header, "rb" )
r = io.open( fichier, "wb+" )
and then write to the example.pdf file. How can I then create the 2 pages?