You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Jason Yip <jy...@westpac.com.au> on 2008/01/22 02:02:01 UTC

Problem with PDF plugin and images

I'm using the PDF plugin found here: http://www.jspwiki.org/wiki/PDFPlugin

Discovered that it didn't support jspwiki.breakTitleWithSpaces so I 
switched that to false but images still aren't appearing.  From the 
discussion pages, it looks like there might have been an issue with 
absolute vs relative paths but that didn't work for me nor do I see any 
log entries that indicate that it's a file not found issue.

Anyone have the PDF plugin working with images on JSPWiki 2.6 and Tomcat 
6?

Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.

This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.

Westpac Banking Corporation ABN 33 007 457 141.

JSPWiki: Problem with PDF plugin and images

Posted by Christophe Dupriez <ch...@poisoncentre.be>.
Hi Pål!

I have solved my problem with images (special characters remain to be solved)...

We use here the NTLM authentication. In web.xml, the setting obliges every files to be accessed by an authenticated user. The image retrieval within the PDF generation in the server cannot be authenticated.

For now, I modified the web.xml to request authentication for .jsp and .pdf files only...

Have a nice day!

Christophe

-----Original Message-----
From: Pål Brattberg [mailto:brattberg@gmail.com] 
Sent: mardi 22 janvier 2008 9:43
To: christophe.dupriez@poisoncentre.be
Cc: jspwiki-user@incubator.apache.org; elisabeth.goossens@poisoncentre.be
Subject: Re: Problem with PDF plugin and images

Though I do not currently use the plugin actively, I know of several
users that have the plugin up and running with images without
problems.

As for language support, you may want to make sure the font used for
PDF-generation has all the characters you are using as a first start.

I you wish to dig deeper in the source code, feel free to do so at
http://code.google.com/p/jspwiki2pdf/

Also note that I'm not on the jspwiki-user list so if you want me to
see your replies, please CC me.

Regards,
Pål

On Jan 22, 2008 9:04 AM, Christophe Dupriez
<ch...@poisoncentre.be> wrote:
> Hi Jason!
>
> I also have this problem under Tomcat 5.5 and JspWiki 2.4. I was thinking to upgrade to 2.6 before more investigation on this topic. It seems it is not the solution!!!
>
> My problems with PDF:
> * no images
> * quotes (used for elision in French) become "?"
> * à becomes "?"
>
> This is a real problem because our users (MDs) have to send PDFs to hospitals to explain how to cure a given intoxication (The Wiki is their "knowledge base"). A text without graphics is often unusable.
>
> If the PDF library is supposed to support this and if it is only a question of interfacing, then I may investigate deeper and try to solve the problem. Anybody can confirm / infirm this ?
>
> Have a nice day!
>
> Christophe Dupriez
>
>
> -----Original Message-----
> From: Jason Yip [mailto:jyip@westpac.com.au]
> Sent: mardi 22 janvier 2008 2:02
> To: jspwiki-user@incubator.apache.org
> Cc: brattberg@gmail.com
> Subject: Problem with PDF plugin and images
>
> I'm using the PDF plugin found here: http://www.jspwiki.org/wiki/PDFPlugin
>
> Discovered that it didn't support jspwiki.breakTitleWithSpaces so I
> switched that to false but images still aren't appearing.  From the
> discussion pages, it looks like there might have been an issue with
> absolute vs relative paths but that didn't work for me nor do I see any
> log entries that indicate that it's a file not found issue.
>
> Anyone have the PDF plugin working with images on JSPWiki 2.6 and Tomcat
> 6?
>
> Please consider our environment before printing this email.
>
> WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
>
> It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
>
> This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
>
> Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
>
> Westpac Banking Corporation ABN 33 007 457 141.
> .
>
>



-- 

/ Pål Brattberg

JSP


RE: Problem with PDF plugin and images

Posted by Christophe Dupriez <ch...@poisoncentre.be>.
Hi again Pål!

I just turned on DEBUG level in jspwiki properties:
log4j.rootCategory=DEBUG,FileLog

I get now more information (see below). It seems that absolute URL to get the images does not have the current session associated (which is normal because it is generated by the server to itself and not by the client to the server) and we have a security exception...

The only idea I would have so far is to modify guestSession() to return a more powerful security principal when the request comes from the server itself...

Any simpler idea???

Thanks!!!

Christophe

- - - - - -
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.auth.acl.DefaultAclManager  - page=Animals.AedesAlbopictus

2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.palbrattberg.jspwiki.Wiki2PDFServlet  - Generating PDF for page = "Animals.AedesAlbopictus" using xsl = "default.xsl".
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiSession  - Looking up WikiSession for NULL HttpRequest: returning guestSession()
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiContext  - Creating WikiContext for session ID=(null); target=Animals.AedesAlbopictus
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiContext  - Do we need to log the user in? false
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiSession  - Looking up WikiSession for NULL HttpRequest: returning guestSession()
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiContext  - Creating WikiContext for session ID=(null); target=Animals.AedesAlbopictus
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiContext  - Do we need to log the user in? false
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - Getting attachments for WikiPage [SAQ:Animals.AedesAlbopictus,ver=9,mod=Wed Dec 12 16:03:53 CET 2007], name=Animals, version=-1
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - ...FOUND in the cache
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - Getting attachments for WikiPage [SAQ:Animals.AedesAlbopictus,ver=9,mod=Wed Dec 12 16:03:53 CET 2007], name=Animals.AedesAlbopictus, version=-1
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - ...FOUND in the cache
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - Getting attachments for WikiPage [SAQ:Animals.AedesAlbopictus,ver=9,mod=Wed Dec 12 16:03:53 CET 2007], name=Aedes_Albopictus.jpg, version=-1
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - ...FOUND in the cache
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - Getting attachments for WikiPage [SAQ:Animals.AedesAlbopictus,ver=9,mod=Wed Dec 12 16:03:53 CET 2007], name=tijgernug.JPG, version=-1
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider  - ...FOUND in the cache
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.ecyrd.jspwiki.WikiEngine  - Page Animals.AedesAlbopictus rendered, took 0:00:00.000
2008-01-22 14:20:03,157 [http-8080-Processor23] DEBUG com.palbrattberg.jspwiki.Wiki2PDFServlet  - Successfully got the HTML for requested page.
2008-01-22 14:20:03,188 [http-8080-Processor23] DEBUG com.palbrattberg.jspwiki.Wiki2PDFServlet  - Page "Animals.AedesAlbopictus" converted into XML ok.
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Getting attachments for WikiPage [SAQ:Animals.AedesAlbopictus,ver=9,mod=Wed Dec 12 16:03:53 CET 2007], name=Aedes_Albopictus.jpg, version=-1
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - ...FOUND in the cache
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.SessionMonitor SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Looking up WikiSession for session ID=74B107CBCC2AF554A3F5AB708124BA30... not found. Creating guestSession()
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.WikiContext SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Creating WikiContext for session ID=74B107CBCC2AF554A3F5AB708124BA30; target=Animals.AedesAlbopictus/Aedes_Albopictus.jpg
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.WikiContext SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Do we need to log the user in? true
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.SessionMonitor SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Looking up WikiSession for session ID=74B107CBCC2AF554A3F5AB708124BA30... found it
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.WebContainerLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Added Principal ,Role.ANONYMOUS,Role.ALL
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Removed Principal Guest
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Committed Principal All
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Committed Principal Authenticated
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Committed Principal 
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - Removed Principal Anonymous
2008-01-22 14:20:03,375 [http-8080-Processor22] DEBUG SecurityLog SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/Aedes_Albopictus.jpg - WikiSecurityEvent.UNKNOWN (30) [source=com.ecyrd.jspwiki.auth.AuthenticationManager@1c3016b, target=com.ecyrd.jspwiki.WikiSession@15a9289]
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Getting attachments for WikiPage [SAQ:Animals.AedesAlbopictus,ver=9,mod=Wed Dec 12 16:03:53 CET 2007], name=tijgernug.JPG, version=-1
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.providers.CachingAttachmentProvider SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - ...FOUND in the cache
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.SessionMonitor SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Looking up WikiSession for session ID=A9FCFDAF51174168223305BC06415386... not found. Creating guestSession()
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.WikiContext SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Creating WikiContext for session ID=A9FCFDAF51174168223305BC06415386; target=Animals.AedesAlbopictus/tijgernug.JPG
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.WikiContext SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Do we need to log the user in? true
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.SessionMonitor SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Looking up WikiSession for session ID=A9FCFDAF51174168223305BC06415386... found it
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.WebContainerLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Added Principal ,Role.ANONYMOUS,Role.ALL
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Removed Principal Guest
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Committed Principal All
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Committed Principal Authenticated
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Committed Principal 
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG com.ecyrd.jspwiki.auth.login.AbstractLoginModule SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - Removed Principal Anonymous
2008-01-22 14:20:03,422 [http-8080-Processor22] DEBUG SecurityLog SAQ:http://toxis:8080/JSPWiki/attach/Animals.AedesAlbopictus/tijgernug.JPG - WikiSecurityEvent.UNKNOWN (30) [source=com.ecyrd.jspwiki.auth.AuthenticationManager@1c3016b, target=com.ecyrd.jspwiki.WikiSession@14a7594]
2008-01-22 14:20:03,563 [http-8080-Processor23] DEBUG com.palbrattberg.jspwiki.Wiki2PDFServlet  - Page "Animals.AedesAlbopictus" converted into PDF ok. Size = 6983
2008-01-22 14:20:03,563 [http-8080-Processor23] DEBUG com.palbrattberg.jspwiki.Wiki2PDFServlet  - PDF generation finished successfully.



RE: Problem with PDF plugin and images

Posted by Christophe Dupriez <ch...@poisoncentre.be>.
(message resent because attached GIF is rejected)
Hi Pål!

I reviewed existing documentation of your plugin.

I modified my JSPWiki properties to add:
jspwiki.baseURL=http://toxis:8080/JSPWiki/
jspwiki.referenceStyle=absolute
Still no images!

I notice I have:
jspwiki.encoding = UTF-8
Is this may explain the problem with apostrophes?

Looking nearer, sometimes we do not have real ASCII single quotes but we have a "fancy character" provided by Microsoft Word: " ’ " (this is not the acute accent on an European keyboard, this is not the standard quote " ' " either! )
Attached image shows you an example of this: We should have "MODE D’ACTION" and not MODE D?ACTION. "oe" ("œ") is also giving a problem. 1/2 also...

I tried a global replace of "’" in all JSPWiki text files (but UltraEdit did not save the resulting files in UTF-8 !) and it will come back next time somebody cut and paste from Word...

So I downloaded your latest JAR without dependencies and insured I joined the latest version of JTidy and FOP (getting also Avalon and Batik within FOP distribution).
One point: xml-graphics-common.jar and commons-io are also requested.
Still no images, still bad "Microsoft Word" characters conversion.

I have no clue for the first problem (as your tests indicate its work).
For the second, I am wondering if JTidy is not the culprit (it is dating from 2001). How can I trace this?
What tracing / debugging could be activated and how?

You were speaking about making fonts available to PDF Generation: what shall I do for this?

THANKS!

Christophe

-----Original Message-----
From: Pål Brattberg [mailto:brattberg@gmail.com] 
Sent: mardi 22 janvier 2008 9:43
To: christophe.dupriez@poisoncentre.be
Cc: jspwiki-user@incubator.apache.org;elisabeth.goossens@poisoncentre.be
Subject: Re: Problem with PDF plugin and images

Though I do not currently use the plugin actively, I know of several
users that have the plugin up and running with images without
problems.

As for language support, you may want to make sure the font used for
PDF-generation has all the characters you are using as a first start.

I you wish to dig deeper in the source code, feel free to do so at
http://code.google.com/p/jspwiki2pdf/

Also note that I'm not on the jspwiki-user list so if you want me to
see your replies, please CC me.

Regards,
Pål

On Jan 22, 2008 9:04 AM, Christophe Dupriez
<ch...@poisoncentre.be> wrote:
> Hi Jason!
>
> I also have this problem under Tomcat 5.5 and JspWiki 2.4. I was thinking to upgrade to 2.6 before more investigation on this topic. It seems it is not the solution!!!
>
> My problems with PDF:
> * no images
> * quotes (used for elision in French) become "?"
> * à becomes "?"
>
> This is a real problem because our users (MDs) have to send PDFs to hospitals to explain how to cure a given intoxication (The Wiki is their "knowledge base"). A text without graphics is often unusable.
>
> If the PDF library is supposed to support this and if it is only a question of interfacing, then I may investigate deeper and try to solve the problem. Anybody can confirm / infirm this ?
>
> Have a nice day!
>
> Christophe Dupriez
>
>
> -----Original Message-----
> From: Jason Yip [mailto:jyip@westpac.com.au]
> Sent: mardi 22 janvier 2008 2:02
> To: jspwiki-user@incubator.apache.org
> Cc: brattberg@gmail.com
> Subject: Problem with PDF plugin and images
>
> I'm using the PDF plugin found here: http://www.jspwiki.org/wiki/PDFPlugin
>
> Discovered that it didn't support jspwiki.breakTitleWithSpaces so I
> switched that to false but images still aren't appearing.  From the
> discussion pages, it looks like there might have been an issue with
> absolute vs relative paths but that didn't work for me nor do I see any
> log entries that indicate that it's a file not found issue.
>
> Anyone have the PDF plugin working with images on JSPWiki 2.6 and Tomcat
> 6?
>
> Please consider our environment before printing this email.
>
> WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
>
> It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
>
> This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
>
> Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
>
> Westpac Banking Corporation ABN 33 007 457 141.
> .
>
>



-- 

/ Pål Brattberg
RE


Re: Problem with PDF plugin and images

Posted by Pål Brattberg <br...@gmail.com>.
Though I do not currently use the plugin actively, I know of several
users that have the plugin up and running with images without
problems.

As for language support, you may want to make sure the font used for
PDF-generation has all the characters you are using as a first start.

I you wish to dig deeper in the source code, feel free to do so at
http://code.google.com/p/jspwiki2pdf/

Also note that I'm not on the jspwiki-user list so if you want me to
see your replies, please CC me.

Regards,
Pål

On Jan 22, 2008 9:04 AM, Christophe Dupriez
<ch...@poisoncentre.be> wrote:
> Hi Jason!
>
> I also have this problem under Tomcat 5.5 and JspWiki 2.4. I was thinking to upgrade to 2.6 before more investigation on this topic. It seems it is not the solution!!!
>
> My problems with PDF:
> * no images
> * quotes (used for elision in French) become "?"
> * à becomes "?"
>
> This is a real problem because our users (MDs) have to send PDFs to hospitals to explain how to cure a given intoxication (The Wiki is their "knowledge base"). A text without graphics is often unusable.
>
> If the PDF library is supposed to support this and if it is only a question of interfacing, then I may investigate deeper and try to solve the problem. Anybody can confirm / infirm this ?
>
> Have a nice day!
>
> Christophe Dupriez
>
>
> -----Original Message-----
> From: Jason Yip [mailto:jyip@westpac.com.au]
> Sent: mardi 22 janvier 2008 2:02
> To: jspwiki-user@incubator.apache.org
> Cc: brattberg@gmail.com
> Subject: Problem with PDF plugin and images
>
> I'm using the PDF plugin found here: http://www.jspwiki.org/wiki/PDFPlugin
>
> Discovered that it didn't support jspwiki.breakTitleWithSpaces so I
> switched that to false but images still aren't appearing.  From the
> discussion pages, it looks like there might have been an issue with
> absolute vs relative paths but that didn't work for me nor do I see any
> log entries that indicate that it's a file not found issue.
>
> Anyone have the PDF plugin working with images on JSPWiki 2.6 and Tomcat
> 6?
>
> Please consider our environment before printing this email.
>
> WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
>
> It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
>
> This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
>
> Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
>
> Westpac Banking Corporation ABN 33 007 457 141.
> .
>
>



-- 
/ Pål Brattberg