[FogBugz #242] Génération PDF de compte rendu en JAVA #305

Open
opened 2023-07-04 06:57:11 +02:00 by fbenoist68 · 19 comments

Assigned To: CLOSED
Project: Mobile Portal
Area: Divers
Category: Fonctionnalité
Priority: A faire le plus tôt possible

Assigned To: CLOSED Project: Mobile Portal Area: Divers Category: Fonctionnalité Priority: A faire le plus tôt possible
Poster
Owner

Event ID: 1734
Date: 2016-02-13T07:01:29Z
Person: Frederik Benoist
Description: Fermé par Frederik Benoist

Event ID: 1734 Date: 2016-02-13T07:01:29Z Person: Frederik Benoist Description: Fermé par Frederik Benoist
Poster
Owner

Event ID: 1733
Date: 2016-02-13T07:01:29Z
Person: Frederik Benoist
Description: Résolu (Existe Déjà) and assigned to Frederik Benoist by Frederik Benoist

Obsolete

Event ID: 1733 Date: 2016-02-13T07:01:29Z Person: Frederik Benoist Description: Résolu (Existe Déjà) and assigned to Frederik Benoist by Frederik Benoist Obsolete
Poster
Owner

Event ID: 1435
Date: 2014-07-14T17:11:25Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

ATTENTION !!!!

il ne faut pas mettre -Dfile.encoding=UTF-8 dans les options JVM de glassfish
car sinon Glassfish ne démarre plus. (Il faut supprimer l'entrée dans le fichier domain.xml)

Event ID: 1435 Date: 2014-07-14T17:11:25Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> <strong>ATTENTION !!!!</strong></p> <p> il ne faut pas mettre<span style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">&nbsp;-Dfile.encoding=UTF-8 dans les options JVM de glassfish</span><br /> <span style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">car sinon Glassfish ne d&eacute;marre plus. (Il faut supprimer l&#39;entr&eacute;e dans le fichier domain.xml)</span></p>
Poster
Owner

Event ID: 1434
Date: 2014-07-14T13:31:44Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Solution possible



Ajouter -Dfile.encoding=UTF-8 dans les options JVM de glassfish

et/ou ajouter ces lignes dans le fichier web.xml



  <filter>

            <filter-name>Set Character Encoding</filter-name>

            <filter-class>filters.SetCharacterEncodingFilter</filter-class>

            <init-param>

                    <param-name>encoding</param-name>

                    <param-value>UTF_8</param-value>

            </init-param>

    </filter>

    <filter-mapping>

            <filter-name>Set Character Encoding</filter-name>

            <url-pattern>/*</url-pattern>

    </filter-mapping>

Event ID: 1434 Date: 2014-07-14T13:31:44Z Person: Frederik Benoist Description: Modifié par Frederik Benoist Solution possible<br /> <br /> Ajouter -Dfile.encoding=UTF-8 dans les options JVM de glassfish<br /> et/ou ajouter ces lignes dans le fichier web.xml<br /> <br /> &nbsp; &lt;filter&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;filter-name&gt;Set Character Encoding&lt;/filter-name&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;filter-class&gt;filters.SetCharacterEncodingFilter&lt;/filter-class&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;init-param&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;param-name&gt;encoding&lt;/param-name&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;param-value&gt;UTF_8&lt;/param-value&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/init-param&gt; <br /> &nbsp; &nbsp; &lt;/filter&gt; <br /> &nbsp; &nbsp; &lt;filter-mapping&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;filter-name&gt;Set Character Encoding&lt;/filter-name&gt; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; <br /> &nbsp; &nbsp; &lt;/filter-mapping&gt;
Poster
Owner

Event ID: 1433
Date: 2014-07-13T23:35:58Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Souci avec les caractères accentués ... lors de la génération du PDF



FileInputStream fis = new FileInputStream(inHTML);

            XMLWorkerHelper.getInstance().parseXHtml(pdfWriter, pdfDocument, new InputStreamReader(fis, "UTF8"));

            //XMLWorkerHelper.getInstance().parseXHtml(pdfWriter, pdfDocument, new FileInputStream(inHTML));



http://compgroups.net/comp.text.pdf/french-characters-not-properly-appearing-on-uni/1098425

Event ID: 1433 Date: 2014-07-13T23:35:58Z Person: Frederik Benoist Description: Modifié par Frederik Benoist Souci avec les caract&#232;res accentu&#233;s ... lors de la g&#233;n&#233;ration du PDF<br /> <br /> FileInputStream fis = new FileInputStream(inHTML);<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XMLWorkerHelper.getInstance().parseXHtml(pdfWriter, pdfDocument, new InputStreamReader(fis, &quot;UTF8&quot;));<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //XMLWorkerHelper.getInstance().parseXHtml(pdfWriter, pdfDocument, new FileInputStream(inHTML));<br /> <br /> http://compgroups.net/comp.text.pdf/french-characters-not-properly-appearing-on-uni/1098425
Poster
Owner

Event ID: 1372
Date: 2014-06-28T04:46:21Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 1372 Date: 2014-06-28T04:46:21Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 1371
Date: 2014-06-28T04:46:09Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 1371 Date: 2014-06-28T04:46:09Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 1370
Date: 2014-06-28T04:32:44Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 1370 Date: 2014-06-28T04:32:44Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 1369
Date: 2014-06-28T04:24:11Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Choix librairie open source itext et plugin xmlworker

http://itextpdf.com/

https://github.com/itext

http://itextpdf.com/product/xml_worker

 

==> Utilisation de la derniere version 2013 de ces composants  : 5.4.5

Event ID: 1369 Date: 2014-06-28T04:24:11Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> Choix librairie open source itext et plugin xmlworker</p> <p> http://itextpdf.com/</p> <p> https://github.com/itext</p> <p> http://itextpdf.com/product/xml_worker</p> <p> &nbsp;</p> <p> ==&gt; Utilisation de la derniere version 2013 de ces composants &nbsp;: 5.4.5</p>
Poster
Owner

Event ID: 1362
Date: 2014-06-26T19:44:32Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 1362 Date: 2014-06-26T19:44:32Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 1361
Date: 2014-06-26T19:41:52Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

<h3>Hello and Welcome</h3>
<ul>
<li>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions.&nbsp;</li>
<li> I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</li>
</ul>
<ol>
<li>"What they do," said Perry, "is to project their thoughts into the fourth dimension,</li>
<li>when they become appreciable to the sixth sense of their listener.  Do I make myself quite clear?"</li>
</ol>
<p>
<a href="http://google.com">Google</a>
</p>
<p style="text-align: right;">
A droite
</p>
<p style="text-align: center;">
Au centre
</p>
<hr>
<table>
<tbody>
<tr>
<td>
<h1>frederik</h1>
</td>
<td style="text-align: center;">
<strong>benoist</strong>
</td>
<td style="text-align: center;">
informaticien
</td>
</tr>
<tr>
<td style="text-align: center;">
julie
</td>
<td>
<h3>benoist</h3>
</td>
<td style="text-align: center;">
<strong>Etudiante</strong>
</td>
</tr>
</tbody>
</table>
<pre>
select count(*) from dual
</pre>
Event ID: 1361 Date: 2014-06-26T19:41:52Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <div> &lt;h3&gt;Hello and Welcome&lt;/h3&gt;</div> <div> &lt;ul&gt;</div> <div> &lt;li&gt;I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions.&amp;nbsp;&lt;/li&gt;</div> <div> &lt;li&gt; I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others&#39; presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.&lt;/li&gt;</div> <div> &lt;/ul&gt;</div> <div> &lt;ol&gt;</div> <div> &lt;li&gt;&quot;What they do,&quot; said Perry, &quot;is to project their thoughts into the fourth dimension,&lt;/li&gt;</div> <div> &lt;li&gt;when they become appreciable to the sixth sense of their listener. &nbsp;Do I make myself quite clear?&quot;&lt;/li&gt;</div> <div> &lt;/ol&gt;</div> <div> &lt;p&gt;</div> <div> &lt;a href=&quot;http://google.com&quot;&gt;Google&lt;/a&gt;</div> <div> &lt;/p&gt;</div> <div> &lt;p style=&quot;text-align: right;&quot;&gt;</div> <div> A droite</div> <div> &lt;/p&gt;</div> <div> &lt;p style=&quot;text-align: center;&quot;&gt;</div> <div> Au centre</div> <div> &lt;/p&gt;</div> <div> &lt;hr&gt;</div> <div> &lt;table&gt;</div> <div> &lt;tbody&gt;</div> <div> &lt;tr&gt;</div> <div> &lt;td&gt;</div> <div> &lt;h1&gt;frederik&lt;/h1&gt;</div> <div> &lt;/td&gt;</div> <div> &lt;td style=&quot;text-align: center;&quot;&gt;</div> <div> &lt;strong&gt;benoist&lt;/strong&gt;</div> <div> &lt;/td&gt;</div> <div> &lt;td style=&quot;text-align: center;&quot;&gt;</div> <div> informaticien</div> <div> &lt;/td&gt;</div> <div> &lt;/tr&gt;</div> <div> &lt;tr&gt;</div> <div> &lt;td style=&quot;text-align: center;&quot;&gt;</div> <div> julie</div> <div> &lt;/td&gt;</div> <div> &lt;td&gt;</div> <div> &lt;h3&gt;benoist&lt;/h3&gt;</div> <div> &lt;/td&gt;</div> <div> &lt;td style=&quot;text-align: center;&quot;&gt;</div> <div> &lt;strong&gt;Etudiante&lt;/strong&gt;</div> <div> &lt;/td&gt;</div> <div> &lt;/tr&gt;</div> <div> &lt;/tbody&gt;</div> <div> &lt;/table&gt;</div> <div> &lt;pre&gt;</div> <div> select count(*) from dual</div> <div> &lt;/pre&gt;</div>
Poster
Owner

Event ID: 1359
Date: 2014-06-25T05:26:47Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Spécifications fonctionnelles

Event ID: 1359 Date: 2014-06-25T05:26:47Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> <a class="undefined" href="https://mobileretail.fogbugz.com/default.asp?W2" rel="nofollow noopener noreferrer">Sp&eacute;cifications fonctionnelles</a></p>
Poster
Owner

Event ID: 1358
Date: 2014-06-25T05:23:46Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 1358 Date: 2014-06-25T05:23:46Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 1329
Date: 2014-06-24T15:58:30Z
Person: Frederik Benoist
Description: Attribué à Saber Bhar par Frederik Benoist

Event ID: 1329 Date: 2014-06-24T15:58:30Z Person: Frederik Benoist Description: Attribué à Saber Bhar par Frederik Benoist
Poster
Owner

Event ID: 1324
Date: 2014-06-24T04:34:51Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://pd4ml.com/

Event ID: 1324 Date: 2014-06-24T04:34:51Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> http://pd4ml.com/</p>
Poster
Owner

Event ID: 1323
Date: 2014-06-24T03:56:26Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

https://pdfbox.apache.org/

Event ID: 1323 Date: 2014-06-24T03:56:26Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> https://pdfbox.apache.org/</p>
Poster
Owner

Event ID: 1322
Date: 2014-06-24T03:53:07Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://pdfcrowd.com/

Event ID: 1322 Date: 2014-06-24T03:53:07Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> http://pdfcrowd.com/</p>
Poster
Owner

Event ID: 1058
Date: 2013-12-11T16:40:39Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist

Event ID: 1058 Date: 2013-12-11T16:40:39Z Person: Frederik Benoist Description: Attribué à Frederik Benoist par Frederik Benoist
Poster
Owner

Event ID: 1057
Date: 2013-12-11T16:40:38Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist

Event ID: 1057 Date: 2013-12-11T16:40:38Z Person: Frederik Benoist Description: Ouvert par Frederik Benoist
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fbenoist68/mobileportal#305
There is no content yet.