|
From: Petr M. <mi...@ph...> - 2007-01-26 17:26:08
|
A fast search for a free PDF writing library has shown this one (except for the PDFlib Lite): http://sourceforge.net/projects/libharu/ Haru is a free, cross platform, open-sourced software library for generating PDF written in ANSI-C. It can work as both a static-library (.a, .lib) and a shared-library (.so, .dll). A fast comparison shows that the C syntax is close to the PDFlib one. Maybe gnuplot could support both libraries? --- PM |
|
From: <tim...@en...> - 2007-01-26 20:34:13
|
Petr Mikulik a =E9crit : > A fast search for a free PDF writing library has shown this one (except= for=20 > the PDFlib Lite): > > http://sourceforge.net/projects/libharu/ > > Haru is a free, cross platform, open-sourced software library for gener= ating=20 > PDF written in ANSI-C. It can work as both a static-library (.a, .lib) = and a=20 > shared-library (.so, .dll). > > A fast comparison shows that the C syntax is close to the PDFlib one. M= aybe=20 > gnuplot could support both libraries? > > --- > PM Cairo can do it too, and we already have 90% of the code in gnuplot=20 right now thanks to the wxt terminal and gp_cairo.c. If enough interest is shown about that, I can concentrate on this in the=20 free time I'll have in next days/weeks (I even think I already started=20 to work on that some time ago, so I must be at 95% of the code ready). Timoth=E9e |
|
From: Ethan M. <merritt@u.washington.edu> - 2007-01-26 20:41:52
|
On Friday 26 January 2007 11:30, Timoth=E9e Lecomte wrote: > Petr Mikulik a =E9crit : > > http://sourceforge.net/projects/libharu/ > > Haru is a free, cross platform, open-sourced software library for gener= ating=20 > > PDF written in ANSI-C. > Cairo can do it too, and we already have 90% of the code in gnuplot=20 > right now thanks to the wxt terminal and gp_cairo.c. What would be the state of UTF-8 support through such a path? That is a big lack in PDFlib Lite. The other tricky bit is pattern-fill, but it's much less important. |
|
From: <tim...@en...> - 2007-01-26 20:45:00
|
Ethan Merritt a =E9crit : > On Friday 26 January 2007 11:30, Timoth=E9e Lecomte wrote: > =20 >> Petr Mikulik a =E9crit : >> =20 >>> http://sourceforge.net/projects/libharu/ >>> Haru is a free, cross platform, open-sourced software library for gen= erating=20 >>> PDF written in ANSI-C. >>> =20 > > =20 >> Cairo can do it too, and we already have 90% of the code in gnuplot=20 >> right now thanks to the wxt terminal and gp_cairo.c. >> =20 > > What would be the state of UTF-8 support through such a path? > That is a big lack in PDFlib Lite. > > The other tricky bit is pattern-fill, but it's much less important. > =20 Well, I am not completely sure, but I would expect the text output to be=20 the same as the one from the wxt terminal. Actually, fonts are more of a=20 problem than encoding in my understanding of pdf. As for pattern-fill, what are you afraid of ? Timoth=E9e |
|
From: Ethan M. <merritt@u.washington.edu> - 2007-01-26 22:13:52
|
On Friday 26 January 2007 11:41, Timoth=E9e Lecomte wrote: > Ethan Merritt a =E9crit : > > > > What would be the state of UTF-8 support through such a path? > > That is a big lack in PDFlib Lite. > > =20 > Well, I am not completely sure, but I would expect the text output to be= =20 > the same as the one from the wxt terminal. Actually, fonts are more of a= =20 > problem than encoding in my understanding of pdf. I think the problem really is the encoding. It's easy to specify a font that contains a very large set of unicode glyphs, but PDFLib Lite only allows you to select those glyphs that are indexed by a single-byte coding table. Full unicode table options, including UTF-8, are only available in commercial versions of PDFLib. Having the glyphs in the font doesn't help if the encoding does not index them. > > The other tricky bit is pattern-fill, but it's much less important. > > > As for pattern-fill, what are you afraid of ? When I originally implemented pattern-fill in pdf.trm, I had to try about 6 different ways of constructing the patterns before I found a sequence of calls that worked. The routines provided=20 by the PDF library did not parallel the PostScript routines as closely as I would have expected. It worked in the end, but it was a bit tricky to find the right calls. |
|
From: Daniel J S. <dan...@ie...> - 2007-01-27 05:36:07
|
Ethan Merritt wrote: > On Friday 26 January 2007 11:41, Timothée Lecomte wrote: >>As for pattern-fill, what are you afraid of ? > > > When I originally implemented pattern-fill in pdf.trm, I had to > try about 6 different ways of constructing the patterns before I > found a sequence of calls that worked. The routines provided > by the PDF library did not parallel the PostScript routines as > closely as I would have expected. It worked in the end, but > it was a bit tricky to find the right calls. Would patterns composed of images rather than strokes be of any help? I think there is now the necessary functions in PostScript to construct the ecodings. PDFlib I don't know about. Beats me what the issue is with sending patterns to the HP printer. I don't see any complaints at the HP website about that. Dan |