Ernest Micklei wrote:
> The implementation does detect the percentage suffix (%) but not "px"
> After adding the statement below in class HTMLWorker, all worked fine.
> 
>         if (txt.endsWith("px")){
>               return c;
>         }

I don't think your patch is correct.
The c that is passed is the original width or height of an image.
The purpose of the method is to overrule the original width or height.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to