llgcode / draw2d

2D rendering for different output (raster, pdf, svg)
BSD 2-Clause "Simplified" License
1.09k stars 105 forks source link

Multipage-PDF file #149

Open maberer opened 6 years ago

maberer commented 6 years ago

How can I create a PDF file with more than one page with the library? I do not understand, how a graphic context maps to a page in a PDF-file.

I did not find an example, that uses more than one PDF page... What is the recommended way to achieve this?

llgcode commented 5 years ago

Hi @tindli, we uses https://github.com/jung-kurt/gofpdf to generate pdf. daw2d can draw in a pdf but cannot handle pages. You need to use gofpdf for this.

TheDiscordian commented 3 years ago

(I'm redstarcoder, I'm moving all my accounts to this one, longtime no see)

It seems jung-kurt is archived. I believe https://github.com/phpdave11/gofpdf is the most maintained fork.

Another (good) option seems to be https://github.com/pdfcpu/pdfcpu