Re: ASCII-85 Encoding Not Working with JPEGs

2005-02-13 Thread Yakov Shafranovich
Jeremias Maerki wrote:
Not having the ASCII-85 filter in place is perfectly legal for a PDF. I
wonder why you need that filter so your process works. Either you're
working with a bad PDF viewer/reader or you're doing something wrong in
stream handling, for example using Readers and Writers instead of
InputStreams and OutputStreams. PDF is binary!
Jeremias,
Thank you! After going back deep into our code, we found that we were in 
fact using an InputStreamReader along the way. Right now we replaced 
everything with binary for FOP, and it works like a charm. I did also 
notice that the deflate filter is not applied to JPEG which is a good 
thing since they are already compressed.

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


Re: Is it posible to insert a new line in a xml tag to change the view of a PDF file

2005-02-11 Thread Yakov Shafranovich
Use fo:block/
Juan Manuel Bellina wrote:
For example if I have the following xml tag:
rtcontactoProveedor:063310
O. ARIAS Y CIA S.A.
Contacto:
PILCOMAYO 848
(1824) -LANUS OESTE
BUENOS AIRES - ARGENTINA
Fax: 4209-2556/rtcontacto
I want to show in my PDF file with a new line between
O. ARIAS Y CIA S.A. and Contacto: but when I see
the pdf file I see:
Proveedor:063310 O. ARIAS Y CIA S.A. Contacto:
PILCOMAYO 848 1824) -LANUS OESTE BUENOS AIRES -
ARGENTINA Fax: 4209-2556
How can I insert a new line to make the view diferent
as in the xml tag.
Thank you,
Juan M.
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

.

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


ASCII-85 Encoding Not Working with JPEGs

2005-02-10 Thread Yakov Shafranovich
We have been using FOP in a servlet to generate PDF files out of a XSLT 
template. One of the problem we had is that the plain PDF output did not 
work until the ASCII-85 filter was enabled as follows:

List list = new ArrayList(2);
list.add(flate);
list.add(ascii-hex);
list.add(ascii-85);
Configuration.put(stream-filter-list, list, Configuration.PDF);
Now for the first time, we used an XSL-FO template with JPEG images via 
the use of the fo:external-graphic tag. The template works fine locally 
but when run in the servlet it fails. Upon closer inspection, the output 
PDF file contains ASCII-85 encoding for everything EXCEPT the embedded 
JPEGs. The JPEGs come out as binary streams even though the rest of the 
file isn't. Is there a way to force ASCII-85 encoding on the whole file?

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