SourceForge has been redesigned. Learn more.
Close

#51 PdfExport: Empty Pdf document

open
Plugin (17)
5
2012-04-11
2012-04-11
harborsiem
No

I import the sharpsoundlib.dll (see in attached file) with AssemblyImport (with latest bugfixes). I can see the class diagram on the screen. Then I try to export the complete class diagram to a pdf file. I got an empty pdf document.

Discussion

  • harborsiem

    harborsiem - 2012-04-11

    zip file with sharpsoundlib.dll

     
  • Malte Ried

    Malte Ried - 2012-04-11

    Hi!

    Thanks for reporting. But I'm afraid I'm not able to reproduce this... This is what I did: I started a brand new NClass instance (from SVN) and created a project and added a C#-diagram (both by double-clicking at the project explorer). Then I started the import using this settings: "Import everything except" with no rules applied and create every relation (without removing the fields used for aggregation). This results in a really huge diagram. Now I did the PDF-export using this settings: Export only selected was not checked and all margins are set to 10 points. The export itself takes some time and results in a approximately 4MB large PDF file. When I open this, everything seems to be fine.

    So I guess you did something else than me. Could you give me a detailed list of steps to reproduce the bug?

    Thanks and best regards,

    Malte

     
  • harborsiem

    harborsiem - 2012-04-13

    Hi!

    I try it again with a new instance of NClass (Gnu tarball from SVN) in VisualStudio 2010 Express on Windows Vista german version. I start the debug code of NClass. When I create a new project like you do, the Plugin-Item for the Assemblyimporter is not enabled. So I change back the revision 48 in mainform.cs. After this doing the AssemblyImporter is enabled after creating a new project. So I import the dll from the attached file like you do. Now I did the Pdf-Export with the default settings. It takes a short time and I get an empty pdf with 125.230 Bytes. There are no error messages or Exceptions when I export to pdf.
    With an other (smaller) dll and a *.exe all worked fine.

    I hope that you can reproduce the bug.

    Regards
    Hartmut

     
  • Malte Ried

    Malte Ried - 2012-04-19

    Hi again!

    There's a bug which prevents the import plugin from getting enabled in all cases. An active project must exist to enable the plugin (an active project is one which is displayed in bold at the project explorer). It shouldn't matter how you create a project and a diagram (creating a diagram activates the project), the results should be the same. So, I tried again and it worked again. Could you send me the saved NClass project, please?

    Thanks,

    Malte

     
  • harborsiem

    harborsiem - 2012-04-20

    Hi,

    I have send the NClass project via your Sourceforge mail address.

    regards
    Hartmut

     
  • Malte Ried

    Malte Ried - 2012-04-30

    Hi!

    Thank you for the project file. I opened it and it seems to be exactly the same to the one I created with the import. I was also able to export it into a valid pdf. So I guess, the problem is not NClass nor the exporter. Could there be any impact from the system like no space left on hard drive, no write permission, a virus-scanner or a behavioural analyser? Maybe I get an idea of the problem if you send me the corrupted pdf? Could you also have a look at the PdfSharp.dll? What's the creation date of the dll and what's the exact size?

    Thanks in advance,

    Malte

     
  • harborsiem

    harborsiem - 2012-05-07

    Hi,

    I have send the "empty" pdf with some comments via your Sourceforge mail address.

    regards
    Hartmut

     
  • Malte Ried

    Malte Ried - 2012-05-20

    Hi again!

    Sorry for the slow response. Finaly I found some time to have a look at the PDF you sent me. Well, what should I say? I can open it and it seems to be correct. It is not empty and contains all the entities of the library. So I guess your PDF-Viewer doesn't wont to open it. Which one are you using?

    Malte

     
  • harborsiem

    harborsiem - 2012-05-20

    Hi!

    On my Windows Vista Notebook I use the german Adobe Reader X Version 10.1.3.
    In the Adobe Reader I play a little bit with "Voreinstellungen, Einheit" I change it from "Millimeter" to "Punkt". Then I can also see the diagram.
    But on my Windows XP Computer with Adobe Reader Version 7 this does not work.

    Do you think the Pdf Plugin work correct and I have to use a better Pdf Reader ?

     
  • harborsiem

    harborsiem - 2012-05-21

    Hi!

    I try it again on my Vista Notebook, but what I tell in the last comment, it does not work anymore. But I found the general solution with my versions of Adobe Reader for the problem. I set the Option for "replace the document colors". Now the unvisible items are shown.

    Hartmut

     
  • Malte Ried

    Malte Ried - 2012-06-03

    Hi!

    OK, so the Adobe Acrobat reader seems to have a problem displaying the generated PDFs. Maybe I can find out what's the part of the pdf which confuses Acrobat Reader and change this. But this may take some time to figure it out.

    Malte

     

Log in to post a comment.