Docs / API reference

Markdown

.NET API

The `DocuVerse` namespace. Documents are `IDisposable`; annotation and command arguments are JSON strings.

PdfDocument

MemberMeaning
PdfDocument.Open(path | bytes, password), Create(), Sample()Open or create
PageCount, InfoJson(), SetInfo()Pages and metadata
RenderPage(page, scale), RenderPagePng(page, scale)Pixels or PNG bytes
PageText(page), PageTextJson(page), SearchJson(query)Text and search
TextBlocksJson(page), ReplaceText(page, block, text), EditText(page, json)Edit the page’s own text, like a word processor
PageImagesJson(page), MoveImage(), TransformImage(), ReplaceImage(), DeleteImage(), AddImage()Edit the page’s own pictures
PageTablesJson(page), AddTable(page, json), SetTable(page, id, json), DeleteTable(page, id)Draw tables on the page and edit them again
InsertBlankPage(), DeletePage(), MovePage(), RotatePage(), AppendPdf(bytes)Page tools
AddAnnotation(page, json), UpdateAnnotation(id, json), DeleteAnnotation(id)Change annotations
AnnotationsJson(page), AnnotationJson(id), MoveAnnotation(), ReorderAnnotation(), Flatten()Read, move, reorder, flatten
ExportAnnotationsJson(), ImportAnnotationsJson(json), RenderAnnotationPng(id, scale)JSON in and out; one annotation as PNG
Undo(), Redo()History
Save(), Save(path, incremental)Bytes, or write a file

WordDocument and ExcelDocument

MemberMeaning
WordDocument.Open(path | bytes)Open a .docx
Command(json), InsertImage(bytes, width, height)Edit; JSON state back
MissingFonts(), Relayout(), Pdf(), Save()Fonts, layout, PDF pages, the .docx
ExcelDocument.Open(path | bytes), Create(), IsExcel(bytes)Open or create a workbook
Command(json), Render(…), Pdf(), Save()Edit, draw, print, save

Fonts

Fonts.Find(family, bold, italic) and Fonts.ForChar(codePoint) return installed font files; Fonts.Register(bytes) adds one; Fonts.Families() lists them.

PdfViewer (Blazor, in the DocuVerse package)

See Get started with Blazor for its parameters and methods.