[ 
https://issues.apache.org/jira/browse/PDFBOX-5581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704449#comment-17704449
 ] 

liu commented on PDFBOX-5581:
-----------------------------

There is a most convenient solution.

private int getSubsampling(PDImage pdImage, AffineTransform at)
as 
protected int getSubsampling(PDImage pdImage, AffineTransform at)

I can build a subclass that inherits PageDrawer and overrides the 
getSubsampling method.


> renderer.setSubsamplingAllowed(true) causing the picture to blur
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-5581
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5581
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 2.0.27
>            Reporter: liu
>            Priority: Major
>         Attachments: screenshot-1.png, screenshot-2.png, screenshot-3.png, 
> test-sub-notsubsampled.jpg, test-sub-subsampled.jpg, test.pdf
>
>
>  !screenshot-1.png! 
> renderer.setSubsamplingAllowed(true) causing the picture to blur.
> This causes the following words to be obscured.
> hi!Is there a way to customize the getSubsampling method?like this.
> I want to display the original image within the specified width and height
>  !screenshot-2.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to