mallklion.blogg.se

Datalogics pdf toolkit
Datalogics pdf toolkit













  1. #DATALOGICS PDF TOOLKIT HOW TO#
  2. #DATALOGICS PDF TOOLKIT PDF#

Let's start by setting up the required resources to use Helvetica as the font for the Overlay Text final PDFResources resources = document.requireCatalog().procureInteractiveForm().procureResources() įinal PDFContents contents = PDFContents.newInstance(document) įinal ModifiableContent content = ModifiableContent.newInstance(contents, resources) įinal PDFFontSimple font = PDFFontSimple.newInstance(document, ASName.k_Helvetica, ASName.k_Type1) įinal ASName fontName = content.addResource(font) Īnd then creating a new PDFDefaultAppearance using our resources // Helvetica 8pt, color green (3 values = RGB, 4 = CMYK, 1 = grayscale)įinal PDFDefaultAppearance pdfDefaultAppearance = PDFDefaultAppearance.newInstance(document, fontName, 8.0, To change the appearance of the Overlay Text, we just need to work with a few more objects so that our PDFAnnotationRedaction object does not use black text on a black rectangle. Earlier we said the most common item used to replace redacted content is a black rectangle, and if you only specify the text that should be used as Overlay Text, you will end up with black text on a black rectangle! This is not what you would expect and you would not be able to see or read the Overlay Text, so you still would not be meeting the requirements of the Freedom of Information Act. Specifying the text to be used as Overlay Text is as straightforward as it gets here is the online that does it assuming you already have a PDFAnnotation Redaction object to work with.

#DATALOGICS PDF TOOLKIT PDF#

Redaction with Datalogics PDF Java Toolkit

#DATALOGICS PDF TOOLKIT HOW TO#

We recently updated the RedactAndSanitize sample for our PDF Java Toolkit to demonstrate setting the Overlay Text property so that those who need to comply with the Freedom of Information Act can do so with ease! Let's take a look at the updates to the sample so you know how to update your application to specify overlay text. The Freedom of Information Act requires that content that is redacted is replaced by one of the defined redaction codes to indicate what was redacted. If you are redacting content in PDFs that will be published due to a Freedom of Information Act request, Overlay Text is extremely important to you. By setting the Overlay Text on a redaction annotation, you are saying "this text should be displayed on top of the redaction annotation" which will enable a human to read that text, understand what type of content was removed, and why, without knowing the actual content. Redaction annotations have a unique property designed to handle those instances where you need to specify what type of content was removed, or why the content was removed, and it is called Overlay Text. In some cases, though, you may be required to provide additional information in the document to indicate what type of content was removed, or why the content was removed. When content is redacted, you can specify what should be put in the space left by removing the sensitive content - this is typically a black rectangle. In a PDF file, you are creating redaction annotations that will eventually be applied to the document and take the place of the content that was redacted. This is why redacting (the removal of the sensitive content) is such an important feature. Because of that, we need to take extra care to remove sensitive data from those files before they go to the Internet universe. When publishing documents online, you have to operate under the assumption that someone, somewhere, has made a copy of it and that it will exist forever.















Datalogics pdf toolkit