Closed JamesScrase-PortSwigger closed 1 week ago
https://github.com/flyingsaucerproject/flyingsaucer/commit/2ce6f9f05a058485185af39d7757b7ded8033280#diff-d210bc82c50b9ada2d6d90ecc8bb3688eaa4df211c1dd891615590558b732759R65 seems to have broken scaling of <img> tags which reference .pdf files - ITextReplacedElementFactory wasn't updated to use the new return value.
<img>
.pdf
ITextReplacedElementFactory
This PR updates the remaining usages of FSImage.scale to use the returned FSImage instead of the existing object, and passes through the unscaled width and height to the new PDFAsImage in PDFAsImage.scale.
FSImage.scale
FSImage
PDFAsImage
PDFAsImage.scale
https://github.com/flyingsaucerproject/flyingsaucer/commit/2ce6f9f05a058485185af39d7757b7ded8033280#diff-d210bc82c50b9ada2d6d90ecc8bb3688eaa4df211c1dd891615590558b732759R65 seems to have broken scaling of
<img>
tags which reference.pdf
files -ITextReplacedElementFactory
wasn't updated to use the new return value.This PR updates the remaining usages of
FSImage.scale
to use the returnedFSImage
instead of the existing object, and passes through the unscaled width and height to the newPDFAsImage
inPDFAsImage.scale
.