Jump to page: 1 2
Thread overview
PDF generation in D?
Nov 10, 2016
Karabuta
Nov 10, 2016
Guillaume Piolat
Nov 10, 2016
Daniel Kozak
Nov 13, 2016
Bauss
Nov 11, 2016
qznc
Nov 11, 2016
Ali Çehreli
Nov 11, 2016
Edwin van Leeuwen
Nov 11, 2016
Karabuta
Nov 15, 2016
Adrian Matoga
Nov 15, 2016
Jot
Nov 15, 2016
Adrian Matoga
Nov 16, 2016
lobo
Nov 16, 2016
Jot
Nov 16, 2016
Adrian Matoga
Nov 22, 2016
Vasudev Ram
Nov 22, 2016
Vasudev Ram
Nov 22, 2016
o3o
November 10, 2016
Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)
November 10, 2016
On Thursday, 10 November 2016 at 22:30:34 UTC, Karabuta wrote:
> Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)

AFAIK the only one existing is http://code.dlang.org/packages/fpdf
November 11, 2016
Dne 10.11.2016 v 23:30 Karabuta via Digitalmars-d napsal(a):

> Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)

It depends what you need, for eg. we are using wkhtmltopdf with no problem. We generate some html with css and js and use wkhtmltopdf to generate pdf file.

November 11, 2016
On Thursday, 10 November 2016 at 22:30:34 UTC, Karabuta wrote:
> Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)

You can pull in Gtk with Cairo and Pango. Cairo can generate pdf. Pango is necessary for advanced text rendering.
November 11, 2016
On 11/10/2016 02:30 PM, Karabuta wrote:
> Hello community, does anyone have on something for PDF generation in D?
> I may need a PDF generation library in a vibe.d project I'm working on. :)

Last time I checked, there was nothing even close to the quality of Prince XML when it comes to print media. I use it to produce the PDF version of Programming in D:


https://bitbucket.org/acehreli/ddili/src/45c2eccfa97d7e2245e9f5b165aae1ea905a3cf2/src/Makefile.ders.in?at=master&fileviewer=file-view-default#Makefile.ders.in-264

Prince is free for personal use. Like Daniel Kozak, I give ddoc-generated HTML and CSS to prince.

Ali

November 11, 2016
On Thursday, 10 November 2016 at 22:30:34 UTC, Karabuta wrote:
> Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)

Personally I would generate markdown and use a command line tool (pandoc) to compile it to pdf. Of course ggplotd can save figures in pdf format (using cairod)
November 11, 2016
I used text files and LaTeX in the past, it works with everything

textfile -> process -> LaTeX -> pdf
November 11, 2016
On Friday, 11 November 2016 at 09:10:38 UTC, Edwin van Leeuwen wrote:
> On Thursday, 10 November 2016 at 22:30:34 UTC, Karabuta wrote:
>> Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)
>

Thanks everyone. I will try the various options you suggested.

> Personally I would generate markdown and use a command line tool (pandoc) to compile it to pdf. Of course ggplotd can save figures in pdf format (using cairod)

I want to generated invoice in PDF format. I think markdown and HTML-to-pdf approach sounds manageable to me. Too bad fpdf does not support Unicode (has a potential though).
November 13, 2016
On Thursday, 10 November 2016 at 23:42:46 UTC, Daniel Kozak wrote:
> Dne 10.11.2016 v 23:30 Karabuta via Digitalmars-d napsal(a):
>
>> Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)
>
> It depends what you need, for eg. we are using wkhtmltopdf with no problem. We generate some html with css and js and use wkhtmltopdf to generate pdf file.

I do this as well and it works elegant
November 15, 2016
On Friday, 11 November 2016 at 09:47:21 UTC, Robert burner Schadek wrote:
> I used text files and LaTeX in the past, it works with everything
>
> textfile -> process -> LaTeX -> pdf

This.

Another (a bit lower-level) option would be to produce a PostScript file and pass it to (e)ps2pdf.
« First   ‹ Prev
1 2