Enable font hinting
Leave feedback
To adjust the display of an outline font (learn more about font hinting) when rendering PDF documents into image GroupDocs.Viewer provides setEnableFontHinting() setting as shown below:
NOTE: this option is supported when rendering into PNG and JPG.
try (Viewer viewer = new Viewer("sample.pdf")) {
PngViewOptions viewOptions = new PngViewOptions();
viewOptions.getPdfOptions().setEnableFontHinting(true);
viewer.view(viewOptions);
}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.