Thread overview | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
November 10, 2016 PDF generation in D? | ||||
---|---|---|---|---|
| ||||
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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Karabuta | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Karabuta | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Karabuta | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Karabuta | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Karabuta | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Karabuta | I used text files and LaTeX in the past, it works with everything textfile -> process -> LaTeX -> pdf |
November 11, 2016 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edwin van Leeuwen | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | 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 Re: PDF generation in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert burner Schadek | 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.
|
Copyright © 1999-2021 by the D Language Foundation