On Tuesday 15 May 2007, Thomas Bickel wrote: > Mark Hall wrote: > > The question now is which way to change the RtfImage class. Should it > > always generate 96dpi native images, which means that the user will have > > to manually adjust it down to 72dpi for PDF equality. The other option is > > always scaling images to 72dpi, with the side-effect that all unscaled > > images in Word say that they are at a scale of 133%. > > I think that the second solution is better, due to the improved > > consistency between PDF and RTF, but I'm interested in other people's > > input here. > > I agree, PDF equality is the preferable solution. It's also easy to > implement you just need to always write \picwgoal,\pichgoal. :) And so I have done :-). The RtfImage class has been updated and two settings added in the RtfDocumentSettings to control the image output. I've also updated the documentation.
> I noted that you convert the raw image data to rtf format when constructing > the RtfImage object, why don't you encode while writing? Could save quite a > bit of memory. Or even better: Why not just write the binary image data > using the \bin keyword? There is no real reason. Throughout my area of the code, I've tried to keep a separation between extracting the information from the iText core objects and actually writing that information. Also efficiency isn't at the top of my list of things to look at. The reason for not writing binary data is that the RTF spec says that the hex display is the default, so I stuck with that. Greetings, Mark -- Make a wish, it might come true. My GPG public key is available at: http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
pgpac6pt5zY1f.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
