#67 Pdf Templates

open
nobody
5
2012-07-18
2008-09-03
Remiguel
No

Please find enclosed my extra pdf templates. I Hope this files will be helpful for community

Remiguel

Instructions:
1) Extract the zip file
2) Locate the Tke directory in the
"GanttProject\plugins\org.ganttproject.impex.htmlpdf_2.0.0\resource\pdf-export-themes\"
directory.
3) Move the plugin.xml to "GanttProject\plugins\org.ganttproject.impex.htmlpdf_2.0.0\" directory
4) optionally, within both file with extension xml, you can edit this two lines:
<xsl:text>Fecha / Date : </xsl:text>
<xsl:text>Pagina / Page: </xsl:text>
and write words "Fecha and Pagina" in your own language.
5) You can also exchange the logo file in this directory with one of your choice.

Discussion

  • franjb68
    franjb68
    2008-09-03

    Logged In: YES
    user_id=1134235
    Originator: NO

    Thank you this nice template. It's clean and easy to read. Fine!

    I have a question: I've tried the horizontal templates (with and without notes) and the 'Task list' page has the dates and resource columns garbled, like mounted.

    How could I modify the template to assign a fixed width to the Name column so long names get a line break?

    Thank you again,
    Franjb68

     
  • Remiguel
    Remiguel
    2008-09-04

    Logged In: YES
    user_id=1366204
    Originator: YES

    Hi Franjb68

    In the xml file look for

    and these lines
    <xsl:for-each select="//view&lt;span&gt;[@id='task-table']&lt;/span&gt;/field">
    <fo:table-column column-width="proportional-column-width({@width})"/>
    </xsl:for-each>
    These lines allow to pick the data from GP screen up and adjust the exact number of column with a proportional width. Try to play with the command column-width.
    Prior to change anything in the xml, be sure that your tasks text are at least broken by one space character. In the opposite case the sentence is considered like one unique word and this will produce text overlapping for long text. For example, write
    AAAAAA_BBBBBBBBBBBBBBB CCCCCCCCC_DDDDDDDDD (space between B and C block) instead this
    AAAAAA_BBBBBBBBBBBBBBB_CCCCCCCCC_DDDDDDDDD.

    Cheers

    Remiguel

     
  • franjb68
    franjb68
    2008-09-04

    Logged In: YES
    user_id=1134235
    Originator: NO

    Hi!

    Thank you for your reply.

    I see that the page 'Task List / Notes' of the same project looks fine. It has inserted a line break for the really long task name.

    As you said, I've verified the task name has spaces.

    I'm looking at the XML file, but I really cant see a difference between the 'Task list' page configuration and the 'Task List / Notes' one. Well, the 'for-each' statement, but it should work without problems, isn't it?

     
  • Remiguel
    Remiguel
    2008-09-04

    Logged In: YES
    user_id=1366204
    Originator: YES

    Hi again

    Yes you are right, the Notes list XML block was made based on the tasks list one. I have basically remove some columns and split data from tasks+notes in 2 separate column (tasks and notes). Therefore the code should basically stay the same.
    Try to change the column width by hand on the Gantt view before exporting to pdf. Sometime this action seems to do a refresh before columns width are picked, from PDF generator up.
    On the morning I have reproduce only one time the overlapping issue and it was after playing with another build of GP. As I switch the setting to my language the problem gone…

    Cheers

    Remiguel

     
  • franjb68
    franjb68
    2008-09-04

    Logged In: YES
    user_id=1134235
    Originator: NO

    Solved!

    I've changed the column width in the Gantt view, as you suggested, and the columns in the PDF file showed fine.

    Thank you!

    Bueno, y ahora en español, que escribir en inglés me cuesta un poco. :-)

    Muchas gracias por las plantillas y por tu ayuda.

    ¡Saludos!

     
  • Remiguel
    Remiguel
    2008-09-05

    Logged In: YES
    user_id=1366204
    Originator: YES

    I' m glad that, finally templates works for you.
    Me alegro que por fin te funcione las plantillas.

    Un saludo / Cheers

    Remiguel

     


Anonymous


Cancel   Add attachments