Customize PDF Rendering on iOS
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
.
Customizing 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, use something like this:
document.updateRenderOptions(for: .all) { $0.interactiveFormFillColor = .clear }
[document updateRenderOptionsForType:PSPDFRenderTypeAll withBlock:^(PSPDFRenderOptions * _Nonnull options) { options.interactiveFormFillColor = UIColor.clearColor; }];