Profile picture for user billie1989

Hello everybody!

I've just finished my home opensource project and I'm ready to share the results with you.

I've been coding for ARIS Platform (scripts, macros) for many years. And there was a lot of situations when I needed to make special formatting in report, but standard output functions didn't allow to meet these requirements.

A few months ago I faced the obstacle again. I had to create a footnote in output. But there was no functionality neither for footnotes nor endnotes. Yes, I know about POI library. I have read a post about it on this forum, but POI has many other restrictions. Also you can't change it on the fly to make a specific output quicker.



That's why I decided to create own JS library for .docx output. It's called wdxLibrary. It works over OpenXML4J and ooxml-schemas.



It has next features:

  • Sections and their properties
  • Columns of the page
  • Special text formatting (any formatting you can find in ECMA standards)
  • Special paragraph formatting
  • Footnotes
  • Endnotes
  • Headers
  • Footers
  • Fields (page number, table of contents etc)
  • Tables, table rows, table cells and their properties
  • Bookmarks
  • Hyperlinks (internal and external)
  • Numbered and bulleted lists (including multilevel lists)
  • Embedded files
  • Graphic output
  • “Native” styles of document

You can find this library here https://github.com/kitmarty/wdxLibrary. Don't forget about readme file. Hope you'll find wdxLibrary useful. It works in ARIS 7.2 and 9.8 (9.6). I don't have an opportunity to test it on ARIS 10.

In attached file you can find some formatting you can get if you use wdxLibrary. This file was generated using it.

It's possible to use base of wdxLibrary to develop same libraries for .xlsx and .pptx.

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 10/16/2017 - 09:51

Great work - but I cannot find the poi.jar where you told it would be. And if I search for this file below the SAG folder, I get multiple one from 3.10 to 3.13. 

Do you know if I would have to put the ooxml-schemas-1.1.jar to each of their folders ?

BR Robert

0
by Nikita Martyanov Author
Posted on Mon, 10/16/2017 - 10:15

In reply to by rgoldenbaum

Hi Robert,

Which version of ARIS do you use? 7, 9 10? Business Server or Local? You have to put it in "abs" folder only If you mean ARIS 9. I tested it on ARIS 9, and it was enough to put in {%ARIS_Installation_Directory%}/LOCALSERVER/bin/work/work_abs_local/base/webapps/abs/WEB-INF/lib .



poi.jar - just common name. There are version of POI in file name in ARIS 9.

And ooxml-schemas-1.1.jar matches POI from 3.10 to 3.13. And I suppose It's enough to put it in "abs".

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 10/16/2017 - 10:29

Hi Nikita,

ARIS 9 with either LOCAL or LOCALHOST...    And ok thanks, I will try to check this out. But looks really good :-)

BR Robert

0
by Nikita Martyanov Author
Posted on Mon, 10/16/2017 - 12:12

In reply to by rgoldenbaum

Thank you, Robert! I appreciate your positive feedback.

0
by Nikita Martyanov Author
Posted on Sun, 11/26/2017 - 11:40

UPD:

- added wdxWordPicture option to adjust picture to fit in the page;

- added method for wdxWord (setProperties).Now next properties of output file are available for editing: author, subject, title etc

 https://github.com/kitmarty/wdxLibrary/

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock