You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Philip Fennell <pf...@empolis.co.uk> on 2002/10/29 14:55:13 UTC

FW: FOP, Cocoon, PDF and embedding images that reside on a different server.

I am using Cocoon to provide a pipeline to convert a list of image URLs in an XML file into a PDF document that contains all the referenced images.

This works fine if all the images are on the same server as Cocoon/Fop.

However, when the images are placed on a different server they do not appear in the PDF document. I'm using full http://rhubarb:8080/blah/blah/thingy.jpg URLs.

The same images are rendered in an HTML page that has been served-up from the same Cocoon sitemap. So I don't believe that it is anything Cocoon is doing.

I'd be surprised if someone hasn't hit this problem before but I haven't seen it yet in the archive.


Regards

Philip A. R. Fennell
Web Developer

empolis UK Ltd. 

Unit B, The Dorcan Complex,
Faraday Road,
Swindon,
Wiltshire.
SN3 5HQ

Reg No: 3831777 VAT No: GB 718 2715 32
Tel: +44 (0)1793 485465 Fax: +44 (0)1793 485451
e-mail: pf@empolis.co.uk
http://www.empolis.co.uk

----------------------------------------------------------------
The information in this email is confidential and may be
legally privileged. It is intended solely for the addressee.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful.
If you have received this communication in error please
return it to the sender, then delete and destroy any copies of it.
----------------------------------------------------------------

_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service.

Re: FW: FOP, Cocoon, PDF and embedding images that reside on a different server.

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Philip Fennell wrote:

> I am using Cocoon to provide a pipeline to convert a list of image URLs in 
> an XML file into a PDF document that contains all the referenced images.
>
> This works fine if all the images are on the same server as Cocoon/Fop.
>
> However, when the images are placed on a different server they do not appear 
> in the PDF document. I'm using full http://rhubarb:8080/blah/blah/thingy.jpg 
> URLs.
>
> The same images are rendered in an HTML page that has been served-up from 
> the same Cocoon sitemap. So I don't believe that it is anything Cocoon is doing.

Chances are your server, where pdf is generated doesn't have 8080 port opened 
hence unable to open connection to the file, but browser, where html is 
browsed, has no problems with that port. Look at fop debug/error messages, 
probably fop complains about the image url.

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Embedded font problem in Outlook

Posted by John Gentilin <ge...@eyecatching.com>.
I don't know if this is your problem but I had several problems using
CID encoded fonts. Adobe Acrobat complained and refused to open
the document. As a last ditch effort, I tried to produce Win ANSI encoded
fonts and the problems went away. TO do this create your font.xml files
using the -enc ansi option of TTFReader.  Note: My problem was not
really occurring when I was embedding fonts, only if I tried to reference
the font files (i.e. no embedFile="" in the font declaration), although if
I embedded the font I was having non consistent results from printer
to printer.

Regards
John G

Lucian Opris wrote:

> Hi,
> Could anyone tell me what is kerning in embedded font used for? As, I mentioned before I still have a problem with the pdf created by FOP and sent by Outlook. For example, if I attach a pdf in my yahoo personal e-mail and try to open up the pdf with outlook is ok, otherwise if I'm using Outlook to attach the same pdf and open up the pdf with outlook, the pdf is corrupted because of embedded fonts. If I'm not using embedded fonts, the pdf is ok in both cases. How can I set up my Outlook to recognize the embedded fonts from pdf? The error are : "There was an error processing a page . Too few operands."
> When I checked the document fonts for the pdf I've got Original Font= 2E58a3ArialNarrow, Bold
>                                                        Type = TrueType (CID)
>                                                        Encoding = Identity-H.
> Am I doing something wrong in embedding file attached? Or maybe the ttf file is not good. I've generated font xml file with TTFReader
>
> Thanks a lot
> Lucian Opris
>
>   ------------------------------------------------------------------------
>                        Name: config-fonts.txt
>    config-fonts.txt    Type: Plain Text (text/plain)
>                    Encoding: quoted-printable

--
--------------------------------------
John Gentilin
Eye Catching Solutions Inc.
18314 Carlwyn Drive
Castro Valley CA 94546

    Contact Info
gentijo@eyecatching.com
Ca Office 1-510-881-4821
NJ Office 1-732-422-4917




Embedded font problem in Outlook

Posted by Lucian Opris <lu...@bluematrix.com>.
Hi,
Could anyone tell me what is kerning in embedded font used for? As, I mentioned before I still have a problem with the pdf created by FOP and sent by Outlook. For example, if I attach a pdf in my yahoo personal e-mail and try to open up the pdf with outlook is ok, otherwise if I'm using Outlook to attach the same pdf and open up the pdf with outlook, the pdf is corrupted because of embedded fonts. If I'm not using embedded fonts, the pdf is ok in both cases. How can I set up my Outlook to recognize the embedded fonts from pdf? The error are : "There was an error processing a page . Too few operands."
When I checked the document fonts for the pdf I've got Original Font= 2E58a3ArialNarrow, Bold
                                                       Type = TrueType (CID)
                                                       Encoding = Identity-H.
Am I doing something wrong in embedding file attached? Or maybe the ttf file is not good. I've generated font xml file with TTFReader

Thanks a lot
Lucian Opris