Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:34:07+00:00 2026-06-12T15:34:07+00:00

Although I am using Doxygen for some years, there are lots of other methods

  • 0

Although I am using Doxygen for some years, there are lots of other methods used to create documentation: PowerPoint files, Word files, UML files. Although every file type has its advantages (e.g. PowerPoint is easy to create and ideal for presentations), this quickly leads to lots of different files, in different locations, and no overview.

I now want to merge all these files into one entry point. My idea is to use Doxygen to generate HTML files that contain the source code documentation, and to write overview documentation in Doxygen (just as Qt does), and include images based on the other files. I am also trying to automate the whole system.

What I am now looking for is a way to convert these other files to images, so my automated system can include these images in the generated HTML (and finally in the generated QCH (Qt Help) file).

For PowerPoint I found some tools, but I don’t seem to get the free ones working correctly, and a trial version of a commercial one fails on some of my PPTX files.

For Enterprise Architect I didn’t find a way to automate the generation of images.

Does anybody know how to automatically generate images from Enterprise Architect files and from PowerPoint files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:34:08+00:00Added an answer on June 12, 2026 at 3:34 pm

    Found it.

    Enterprise architect has a Java Archive (eaapi.jar) which you can use to access the EAP files from Java.

    What you need to do is get the repository, open the file and getting all top-level packages from it (I’ve omitted all error handling code from this sample):

    org.sparx.Repository repo = new org.sparx.Repository();
    org.sparx.Project project = repo.GetProjectInterface();
    repo.OpenFile(args[0]);
    org.sparx.Collection packages = repo.GetModels();
    

    Then loop over all the packages and call your own method (because you will need to call yourself recursively):

    for (short i=0;i<packages.GetCount();i++)
       {
       org.sparx.Package pack = (org.sparx.Package)packages.GetAt(i);
       handlePackage (project, pack, currentdir);
       }
    

    Then in the method, loop over all diagrams and generate the images, and loop over all sub-packages recursively:

    public static void handlePackage (org.sparx.Project project, org.sparx.Package pack, String output)
       {
       for (org.sparx.Diagram diagram : pack.GetDiagrams())
          {
          project.PutDiagramImageToFile (diagram.GetDiagramGUID(), output + diagram.GetName() + ".png", 1);
          }
       for (org.sparx.Package subpack : pack.GetPackages())
          {
          handlePackage(project,subpack,output);
          }
       }
    

    That’s it.

    Some pitfalls:

    • You must pass a fully qualified path to the OpenFile method. Even if the file is in your local folder, you still have to pass the full path.
    • Same for the output files
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing an internship and they are using SVN (although there has been some
I'm building a site using CodeIgniter that largely consists of static content (although there
I need to pre-compress some very large html/xml/json files (large data dumps) using either
Although using daily in my programming , but never realized about this question :
Although I am using mySQL (for now), I dont want any DB specific SQL.
I'm using a jquery-ui dialog although I could switch to fancybox or colorbox, etc
I am using the jQuery-File-Upload widget (although I believe this question can generalize to
I have just started using jQuery and although following code gets the job done,
I'm using Rails' asset pipeline to concatenate all my CSS/JS (although I imagine the
I am using a JDBC driver for Microsoft SQL Server 2012 (sqljdbc_4.0) and although

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.