Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: monicashishodia on January 06, 2017, 10:33:47 pm

Title: Craete PDF files using Jscript
Post by: monicashishodia on January 06, 2017, 10:33:47 pm
Hi All

I am trying to generate rtf file using jscript in document script part of fragment. The function that i am calling is Repository.CreateDocumentGenerator(). After getting elements in required form, i am calling GetDocumentAsRTF() on the document object (created earlier).

I am not able to generate PDF or word file using this script. Is there any way through which i can achieve the same. The RTF is taking time in generation when objects are more (or includes few diagrams).

Please suggest.

Regards,
Monica
Title: Re: Craete PDF files using Jscript
Post by: Geert Bellekens on January 06, 2017, 10:58:55 pm
I have made the most complex documents using only standard templates, fragments and virtual documents.

If you do it like that the user has the choice to generate RTF, DocX or PDF.

Geert
Title: Re: Craete PDF files using Jscript
Post by: monicashishodia on January 09, 2017, 02:56:15 pm
Hi Geert

Thanks for reply. We raised the query with EA support and they directed us in document scripts direction. But i guess virtual document might solve our problem since rtf generation is taking too much through jscript.

Regrads,
Monica