Ok, now I'm a bit smarter. It took me pretty long to realize what was
really wrong that I got blank pages. The real reason was that if you
don't have any filters active that have a name Acrobat Reader has
problems if the stream is encrypted. As soon as you add the Flate filter,
for example, the page is displayed. So what Jörg told me was already one
step further down the road. I wasn't there at that time.

Now I also understand what you are discussing. After poking around the
code I realized I don't like the way filters are realized at all. The
content of the StreamCache instances gets abused. First you fill in the
raw contents, then apply the filters. The result gets stored in the
place of the raw contents. If you don't object I will rework the filter
stuff so the filters get applied later, namely when it's time to
serialize to the OutputStream. The encoding will be reworked from
encode(in, out) calls to a chain out FilterOutputStream descendant (as
done for the PostScript renderer). That should also reduce the number of
buffer reallocations a bit and improve performance because the buffers
don't get copied around so many times. Or so I hope. If nothing else it
should clean up the design and make it easier to apply
filters/encryption in a more uniform way. The code is currently
scattered all around the package and in the PDF renderer package.

While doing the above work I also realized that the font support was
more or less broken. I've fixed it along the way as good as it went.
I'll add the changes soon. But now I have to atend to other duties first.
See ya.

On 14.03.2003 00:00:37 Keiron Liddle wrote:
> > That's why I didn't commit the patch: I didn't want to re-add
> > the PDFDocument reference to PDFXObject in order to get the
> > add the encryption filter after the makeStream() without asking
> > why the reference had been dropped on the way from maintenance
> > to HEAD.
> 
> The PDFDocument was used in the constructor to create ICCStreams for jpeg 
> images. This seemed all to specific and was moved to the setup for the 
> FopPDFImage.



Jeremias Maerki


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

Reply via email to