LINCnil / pia

Version web front office de l’application PIA à déployer sur un serveur afin d’en donner l’accès via un navigateur web | Front office of the PIA application to be deployed on a server in order to access it through a web browser.
GNU General Public License v3.0
262 stars 270 forks source link

Problem on exporting Report #595

Closed frissner closed 1 year ago

frissner commented 2 years ago

Export's Word-Document is corrupted Export -zip contains an .odt-file in Doc-folder; Word 2016 says "The file is corrupt and cannot be opened"
Word tries to repair the document and fails with "Microsoft Office cannot open this file because some parts are missing or invalid." When opening the file with Libre Office formatting and pictures are missing and ends with 'Risks overview'; so it seems to be incomplete..

i used Pia standalone 3.0.2 (https://github.com/LINCnil/pia/releases/tag/v3.0.2)

Pour reproduire / To Reproduce Etapes pour reproduire le bug / Steps to reproduce the behavior:

  1. create a privacy impact assessment
  2. select all items in "DONWLOAD ELEMENTS OF THE REPORT"
  3. click download and save zip
  4. extract zip
  5. navigate to Doc folder
  6. open odt-file with Word 2016 -> see error messages "The file is corrupt and cannot be opened"
  7. try to repair file -> see error message "Microsoft Office cannot open this file because some parts are missing or invalid."

Comportement attendu / Expected behavior Donner une description claire et concise du comportement attendu. / A clear and concise description of what you expected to happen. I expect a document which opens without warnings or errors

Captures d'écran / Screenshots Si pertinent, ajouter des captures d'écran pour expliquer le problème rencontré. / If applicable, add screenshots to help explain your problem.

Pour les versions standalones / For standalone version (please complete the following information):

Pour les versions navigateurs / For browser version (please complete the following information):

Elements additionnels Additional context Ajouter tout autre élément pertinent concernant le problème ici. / Add any other context about the problem here. It seems to be the case, that version 3.0.0 exports with correct formatted doc-file (no odt-file); though pictures are still missing

frissner commented 2 years ago

By deeper inspecting the odt-file I found out that it is an html-file. Furthermore all css used inside the file is missing. It seems that pictures are referenced by using css also.

syl-p commented 2 years ago

Our developer convert .odt export into .doc export. This fixes is actualy in master branch. I think this could be resolve your problem. No ? https://github.com/LINCnil/pia/pull/597

kevin-atnos commented 2 years ago

@syl-p We need to create a minor update (3.0.3) to have this fix deployed to all users. This will solve this issue. The patch (3.0.3) will come really soon, @brunto and I will keep you in touch.

Regards,

siben75 commented 2 years ago

Hi, I have a problem whit release 3.0.3 to print with PDFCreator 4.4.3. The different sections are not printed correctly because a few end of page have a row cut and divided between the two pages. image

image

I have tried to install on my PC Win11 and remake PDF but nothing. I have the PIA 3.0.3 portable version installed on our server with Win Server 2012 R2 and also installed on my pc with Win 11, but the problem is the same. I have to print the documents to sign officially and to store them in our physical archive.

To find another solution, I have tried to export the documents in .doc version to fomatted them and to apply the images exported. But the graphs are cut too. image

Have you ever had the same problem? Thankyou in advance.

syl-p commented 1 year ago

Hello @siben75, Did you try to use the print button to get a .pdf file ?

image

Recently, we added a .pdf export option.

This will be release very soon. Hope this will be helpful to you and your pdf problem.