PeachDrawing.PDF.PdfFormBuilder
PdfFormBuilder.AddDisclosureAsync(PdfComposerPage, PdfDisclosureDefinition) Method
Adds a region a reader can open and close without scripting: a hidden rectangle holding PaintContent,
and a transparent button over the heading; the button’s Hide action shows the rectangle (and removes the button), and clicking the rectangle hides it again. A reader that
does not run them (a printer, a viewer without interactive forms) shows the closed page.
public System.Threading.Tasks.ValueTask AddDisclosureAsync(PeachDrawing.PDF.PdfComposerPage page, PeachDrawing.PDF.PdfDisclosureDefinition disclosure);
Parameters
page PdfComposerPage
the page the region goes on
disclosure PdfDisclosureDefinition
what the region is, where it is and how it looks
Returns
System.Threading.Tasks.ValueTask
a task that completes when the region is drawn
Remarks
Hide actions are not allowed in a PDF/A or PDF/X document, so callers leave them out of one.