pdf-rs / pdf

Rust library to read, manipulate and write PDF files.
MIT License
1.24k stars 119 forks source link

New file generation #191

Open madmaxio opened 1 year ago

madmaxio commented 1 year ago

I tried to experiment with new file generation from scratch, mostly around "content" example, and filling it with custom content.

Does anyone working in that direction and has some ideas/API/examples for that case?

s3bk commented 1 year ago

Not yet, but it is on my list.

s3bk commented 1 year ago

I modified the content example to produce a completely new file. The API will most definitely be improved from here.

madmaxio commented 1 year ago

Thank you, that's very interesting.

s3bk commented 1 year ago

I added a PdfBuilder. The storage needs to be exposed somehow for any non-trivial use.