Customize Document Rendering

There are various rendering options to customize how a document is rendered and displayed onscreen. Take a look at all the different PSPDFRenderOptions you can customize. To apply custom rendering options to your document, you can use the -updateRenderOptionsForType:withBlock: method on PSPDFDocument.

Customize the Appearance of Forms

To customize the appearance of form elements in a document and style them in a different color, you can set PSPDFRenderOptions.interactiveFormFillColor on the relevant render options object.

To make form elements invisible but still editable, you can use something like this:

1
2
3
document.updateRenderOptions(for: .all) { options in
	options.interactiveFormFillColor = .clear
}
Copy
1
2
3
[document updateRenderOptionsForType:PSPDFRenderTypeAll withBlock:^(PSPDFRenderOptions * _Nonnull options) {
    options.interactiveFormFillColor = UIColor.clearColor;
}];