Re: [dev] writer: export pages as bitmaps (e.g. PNG)
Hi Laurent, On 03/08/07 07:54, Laurent Denoue wrote: Is there an API to export each page of a Writer document as a picture? It's possible under Impress, as shown here: http://www.oesf.org/forums/lofiversion/index.php/t7790.html I don't see a way to do this directly. What about using the pdf export filter and use some external tools to convert the pages to graphic files? Best regards, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] writer: export pages as bitmaps (e.g. PNG)
If I can add to Frank's idea of working with PDF and then processing the pdf into images. I have used the iText library with good results : http://sourceforge.net/projects/itext/ which allows you to manipulate pdf split it based on page boundaries, output each page to a different format and so on. So you could take the pdf output of writer and process it into images On 3/9/07, Frank Meies - Sun Germany - Development - Software Engineer [EMAIL PROTECTED] wrote: Hi Laurent, On 03/08/07 07:54, Laurent Denoue wrote: Is there an API to export each page of a Writer document as a picture? It's possible under Impress, as shown here: http://www.oesf.org/forums/lofiversion/index.php/t7790.html I don't see a way to do this directly. What about using the pdf export filter and use some external tools to convert the pages to graphic files? Best regards, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] writer: export pages as bitmaps (e.g. PNG)
Yes, pdf export is what I'm doing now, using either ghostscript or xpdf to image each PDF page into a PNG. But it is slower than being able to directly grab the rendered page from Writer. Can somebody point me to the PDF export functions? Maybe I could hack a PNG export function instead. Laurent. On 3/9/07, ashok _ [EMAIL PROTECTED] wrote: If I can add to Frank's idea of working with PDF and then processing the pdf into images. I have used the iText library with good results : http://sourceforge.net/projects/itext/ which allows you to manipulate pdf split it based on page boundaries, output each page to a different format and so on. So you could take the pdf output of writer and process it into images On 3/9/07, Frank Meies - Sun Germany - Development - Software Engineer [EMAIL PROTECTED] wrote: Hi Laurent, On 03/08/07 07:54, Laurent Denoue wrote: Is there an API to export each page of a Writer document as a picture? It's possible under Impress, as shown here: http://www.oesf.org/forums/lofiversion/index.php/t7790.html I don't see a way to do this directly. What about using the pdf export filter and use some external tools to convert the pages to graphic files? Best regards, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] writer: export pages as bitmaps (e.g. PNG)
Hi Laurent, On 09.03.2007 20:02, Laurent Denoue wrote: Yes, pdf export is what I'm doing now, using either ghostscript or xpdf to image each PDF page into a PNG. But it is slower than being able to directly grab the rendered page from Writer. Can somebody point me to the PDF export functions? Maybe I could hack a PNG export function instead. the pdf filter is implemented in filter/source/pdf. Have a look at pdfexport.cxx, I think it should be possible to grab the bitmap from the OutputDevice pOut after rendering each page. Hope this helps, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] writer: export pages as bitmaps (e.g. PNG)
Hello, Is there an API to export each page of a Writer document as a picture? It's possible under Impress, as shown here: http://www.oesf.org/forums/lofiversion/index.php/t7790.html Thanks, Laurent.