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 RenderOptions you can customize. To apply custom rendering options to your document, you can use the updateRenderOptions(for:with:) method on Document.

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 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) {
    $0.interactiveFormFillColor = .clear
}
Copy
1
2
3
[document updateRenderOptionsForType:PSPDFRenderTypeAll withBlock:^(PSPDFRenderOptions * _Nonnull options) {
    options.interactiveFormFillColor = UIColor.clearColor;
}];