Author Topic: Craete PDF files using Jscript  (Read 3321 times)

monicashishodia

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Craete PDF files using Jscript
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Craete PDF files using Jscript
« Reply #1 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

monicashishodia

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Craete PDF files using Jscript
« Reply #2 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