Re: libfo accessing output buffer
Tony Graham <[email protected]> Thu, 08 Mar 2007 17:10:08 +0000
| Newsgroups | gmane.text.xml.xmlroff.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Mar 08 2007 10:55:39 +0000, Vasanth Manickam wrote: > =A0I am trying to output the pdf with an http response but I do not want > to save it on the local disk before doing so, can libgnomeprint be made > to write to memory instead of a file.. Cairo looks to be a better option that libgnomeprint, now that I look at it. It would require modifying the FoDoc type (fo-doc.[ch], fo-doc-cairo.[ch]) to add a create function that accepts a stream argument instead of a filename. Internally, it would use cairo_pdf_surface_create_for_stream() (and other variants for other output formats). See: http://www.cairographics.org/manual/cairo-PDF-Surfaces.html#cairo-pdf-surfa= ce-create-for-stream > and sorry abt the footer.. it is added automatically by our mail > server.. That is what I expected to be the case. Thanks for omitting it this time. Regards, Tony. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tony Graham mailto:[email protected] Menteith Consulting Ltd http://www.menteithconsulting.com 13 Kelly's Bay Beach Skerries, Co. Dublin, Ireland =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDEV