Product Version: 9.3.0
Please give a brief summary of your issue:
(Think of this as an email subject)
How can I save the redaction’s overlay text font and horizontal text alignment? Can you provide an example in Java?
appearance.horizTextAlignment = new Redaction(page.getSDFObj()).getQuadForm();
The above line always sets alignment=3, no matter of the justification that is in the XFDF document.
appearance.font = new Font(redaction.getSDFObj());
The above line results with exception.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible:
Hello, I’m Ron, an automated tech support bot
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
Can you please send over the PDF file with the redaction?
Can you also let us know what applied the original redaction, i.e. WebViewer or 3rd party?
The redaction is applied in WebViewer v8.9. Links are the test PDF as downloaded from the WebViewer and document containing the XFDF string.
Bellow is the exception I get when trying to set the font with this line:
appearance.font = new com.pdftron.pdf.Font(redaction.getSDFObj());