Perhaps a problem with the gif format ?

Julien Kirch




Extranet
[EMAIL PROTECTED] - 15/02/2005 10:51


Veuillez répondre à dev@maven.apache.org



Pour : dev

cc :


Objet :     [jira] Commented: (MPPDF-31) Cannot insert logo image to PDF


The following comment has been added to this issue:

     Author: Oleg F. Vlasenko
    Created: Tue, 15 Feb 2005 4:50 AM
       Body:
This response was written by Arnaud HERITIER :

I didn't notice it with my projects or maven itself :

  <organization>
    <name>Apache Software Foundation</name>
    <url>http://www.apache.org/</url>
    <logo>/images/apache-maven-project.png</logo>
  </organization>
  <inceptionYear>2001</inceptionYear>
  <package>org.apache.maven</package>
  <logo>/images/maven-small.gif</logo>

 I'll test it a little bit more.

Thx for your help.

Arnaud


---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPPDF-31?page=comments#action_29891

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPPDF-31

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPPDF-31
    Summary: Cannot insert logo image to PDF
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-pdf-plugin
   Versions:
             2.2

   Assignee: Arnaud HERITIER
   Reporter: Oleg F. Vlasenko

    Created: Tue, 15 Feb 2005 4:46 AM
    Updated: Tue, 15 Feb 2005 4:50 AM
Environment: Windows XP professional version 2002 and
Linux Red Hat / Maven 1.0.2 / maven-pdf-plugin-2.2.1

Description:
Fragment of text of project.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project>

...

  <organization>

    <logo>/images/XXX.gif</logo>

  </organization>

  <logo>/images/YYY.gif</logo>

...



Fragment of text of maven.xml:



    <postGoal name="site">

        <attainGoal name="pdf"/>

    </postGoal>



In compile time the error is generated.



...

[java] [ERROR] Error while creating area : Error while recovering Image
Informations (file:/images/YYY.gif) : /images/YYY.gif (No such file or
directory)

...



As I understand the problem is connected with following code:



    <j:if test="not ${maven.pdf.projectLogo.startsWith('http://')}">

      <maven:makeAbsolutePath

        var="maven.pdf.projectLogo"

        basedir="${maven.xdoc.src}"

        path="${maven.pdf.projectLogo}"

        trim="true"/>

    </j:if>





<logo>/images/YYY.gif</logo> includes the path which is absolute. And so
the prefix ${maven.xdoc.src}is not concatenated to the path. And so the
file YYY.gif cannot be found.



I have "simplified" code and YYY.gif was found:



    <j:if test="${not maven.pdf.companyLogo.startsWith('http://')}">

      <j:set var="maven.pdf.companyLogo">${maven.xdoc.src}
      ${maven.pdf.companyLogo}</j:set>

</j:if>



I think this problem can be resolved by more general way.




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to