Re: [api-dev] XRenderer.render
Tim Parth wrote: -- From: Fernand Vanrie [EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 2:15 PM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Tim Parth wrote: -- From: Fernand Vanrie [EMAIL PROTECTED] Sent: Monday, April 28, 2008 11:14 AM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Tim Parth wrote: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. On the forum you will find some code how to use the Rendering. In the post about the preview in a filepicker dialog you can also find how to have a preview of a writerdoc in a filepicker preview window but here without using the Rendering. I couldn't find anything useful on the forum how to use the Rendering. Do you have a link, Fernand? please : http://www.oooforum.org/forum/viewtopic.phtml?t=38165highlight=render+filepicker http://www.oooforum.org/forum/viewtopic.phtml?t=38165highlight=render+filepicker Ok, thanks for the link. I found out that it is only possible to load graphics from an URL, no TextDocuments. And the XRendering-Interface is obviously the wrong place to search for what I need. Maybe I need to take a more deeply look into how to export a Document? If I can export it to PDF I may also be able to export it to a bitmap? Any ideas using that direction? - I now that there is in OO work going on open-edit PDF as a writer or draw doc so maybe there you van find some more info - Most professional Graphic software as Quark Express places PDF files as normal graphics into there own files - You still have to find a solution to determe what page you want to convert en render Hope it helps Fernand Thank you all very much in advance! Kind regards, Tim - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] XRenderer.render
-- From: Fernand Vanrie [EMAIL PROTECTED] Sent: Monday, April 28, 2008 11:14 AM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Tim Parth wrote: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. On the forum you will find some code how to use the Rendering. In the post about the preview in a filepicker dialog you can also find how to have a preview of a writerdoc in a filepicker preview window but here without using the Rendering. I couldn't find anything useful on the forum how to use the Rendering. Do you have a link, Fernand? Hope it helps Fernand Thank you all very much in advance! Kind regards, Tim - 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: [api-dev] XRenderer.render
Tim Parth wrote: -- From: Fernand Vanrie [EMAIL PROTECTED] Sent: Monday, April 28, 2008 11:14 AM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Tim Parth wrote: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. On the forum you will find some code how to use the Rendering. In the post about the preview in a filepicker dialog you can also find how to have a preview of a writerdoc in a filepicker preview window but here without using the Rendering. I couldn't find anything useful on the forum how to use the Rendering. Do you have a link, Fernand? please : http://www.oooforum.org/forum/viewtopic.phtml?t=38165highlight=render+filepicker http://www.oooforum.org/forum/viewtopic.phtml?t=38165highlight=render+filepicker Hope it helps Fernand Thank you all very much in advance! Kind regards, Tim - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] XRenderer.render
-- From: Fernand Vanrie [EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 2:15 PM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Tim Parth wrote: -- From: Fernand Vanrie [EMAIL PROTECTED] Sent: Monday, April 28, 2008 11:14 AM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Tim Parth wrote: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. On the forum you will find some code how to use the Rendering. In the post about the preview in a filepicker dialog you can also find how to have a preview of a writerdoc in a filepicker preview window but here without using the Rendering. I couldn't find anything useful on the forum how to use the Rendering. Do you have a link, Fernand? please : http://www.oooforum.org/forum/viewtopic.phtml?t=38165highlight=render+filepicker http://www.oooforum.org/forum/viewtopic.phtml?t=38165highlight=render+filepicker Ok, thanks for the link. I found out that it is only possible to load graphics from an URL, no TextDocuments. And the XRendering-Interface is obviously the wrong place to search for what I need. Maybe I need to take a more deeply look into how to export a Document? If I can export it to PDF I may also be able to export it to a bitmap? Any ideas using that direction? Hope it helps Fernand Thank you all very much in advance! Kind regards, Tim - 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] - 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: [api-dev] XRenderer.render
Tim Parth wrote: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. On the forum you will find some code how to use the Rendering. In the post about the preview in a filepicker dialog you can also find how to have a preview of a writerdoc in a filepicker preview window but here without using the Rendering. Hope it helps Fernand Thank you all very much in advance! Kind regards, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: [Spam] Re: [api-dev] XRenderer.render
Tim Parth wrote: Hi! Producing a preview works, but I couldn't receive an Image of the rendered document either. My current approach is: exporting a document to PDF Interesting aproach, there is also a OO-project to open PDF as a writerodc, maybe you will find there some usefull information to convert PDF into a graphic format without using Goastscript , rendering it to JPG through Ghostscript and loading it back into my application. Not the best way but it works for the moment. If anybody knows a better approach - don't hesitate telling me! Thank you all in advance! Kind regards, Tim -- From: Marc Santhoff [EMAIL PROTECTED] Sent: Saturday, April 26, 2008 5:23 PM To: dev@api.openoffice.org Subject: Re: [api-dev] XRenderer.render Am Samstag, den 26.04.2008, 10:41 +0200 schrieb Tim Parth: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. Thank you all very much in advance! Hi, since noone seems to know the answer: I remember darkly having fiddled with such stuff and a way I found was using some PrintPreview-related properties and functions. IIRC these functions dealt with rendering the preview of templates. Maybe you'll find something looking for that keywords ... HTH, Marc P.S.: found somthing ... sub testLoadAsPreview oDT = createUnoService(com.sun.star.frame.Desktop) aURL = convertToUrl(/home/marc/Dokumente/Notizen.sdw) dim Args(1) as new com.sun.star.beans.PropertyValue Args(1).Name = ReadOnly Args(1).Value = TRUE Args(0).Name = Preview Args(0).Value = TRUE tmpDoc = oDT.loadComponentFromUrl(aURL, _blank, 0, Args()) end sub After that you would need to extract a bitmap out of the view. Have fun ... ;) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: [Spam] Re: [api-dev] XRenderer.render
Marc Santhoff wrote: Am Samstag, den 26.04.2008, 10:41 +0200 schrieb Tim Parth: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. Thank you all very much in advance! Hi, since noone seems to know the answer: I remember darkly having fiddled with such stuff and a way I found was using some PrintPreview-related properties and functions. IIRC these functions dealt with rendering the preview of templates. Maybe you'll find something looking for that keywords ... HTH, Marc P.S.: found somthing ... sub testLoadAsPreview oDT = createUnoService(com.sun.star.frame.Desktop) aURL = convertToUrl(/home/marc/Dokumente/Notizen.sdw) dim Args(1) as new com.sun.star.beans.PropertyValue Args(1).Name = ReadOnly Args(1).Value = TRUE Args(0).Name = Preview Args(0).Value = TRUE tmpDoc = oDT.loadComponentFromUrl(aURL, _blank, 0, Args()) end sub After that you would need to extract a bitmap out of the view. this technique is used in showing a preview of a writerdoc in a filepicker window Have fun ... ;) - 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]
[api-dev] XRenderer.render
Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. Thank you all very much in advance! Kind regards, Tim
Re: [api-dev] XRenderer.render
Am Samstag, den 26.04.2008, 10:41 +0200 schrieb Tim Parth: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. Thank you all very much in advance! Hi, since noone seems to know the answer: I remember darkly having fiddled with such stuff and a way I found was using some PrintPreview-related properties and functions. IIRC these functions dealt with rendering the preview of templates. Maybe you'll find something looking for that keywords ... HTH, Marc P.S.: found somthing ... sub testLoadAsPreview oDT = createUnoService(com.sun.star.frame.Desktop) aURL = convertToUrl(/home/marc/Dokumente/Notizen.sdw) dim Args(1) as new com.sun.star.beans.PropertyValue Args(1).Name = ReadOnly Args(1).Value = TRUE Args(0).Name = Preview Args(0).Value = TRUE tmpDoc = oDT.loadComponentFromUrl(aURL, _blank, 0, Args()) end sub After that you would need to extract a bitmap out of the view. Have fun ... ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]