视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
evopdf-next-pdf-edit【文档与办公】Open and modify an existing PDF in .NET with EvoPdf Next PdfEditor: add text, images, shapes and HTML templates to loaded pages, append blank pages, flatten, and save. Use for stamping, watermarking and post-processing tasks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
The PdfEditor class lets you add new content to an existing PDF without rewriting the rest of the document. The editor is instantiated with the source PDF bytes or file path and an optional password. The standard claimed by the source document and its existing page geometry are inherited by the editor. Content is added at absolute page coordinates using the dedicated Add methods. Every Add method takes the target page number as the first argument. If the rendered content overflows the available space a new page is created automatically by the engine. The resulting modified PDF is produced with PdfEditor.Save.
Namespace EvoPdf.Next. Install one NuGet package for the target platform, for example
EvoPdf.Next.Windows, EvoPdf.Next.Linux or EvoPdf.Next.MacOS.
PdfEditor: Allows editing of existing PDF documents by adding HTML content, setting metadata, applying security options, and digital signatures. Use Save or Save...1 types, 52 public members. The complete member list with the shipped
summaries is in references/api.md; do not guess member names that are not there.
PdfEditor also signs existing documents, adds signature fields and long-term validation data (see
evopdf-next-security-signatures) and embeds electronic invoices in PDF/A-3 documents (see evopdf-next-electronic-invoices).
string password = string.IsNullOrEmpty(ownerPassword) ? userPassword : ownerPassword;
using PdfEditor pdfEditor = new PdfEditor(inputPdfBytes, password);
PdfTextElement element = new PdfTextElement(text, font) { X = 0, Y = crtYPos, Width = contentWidth };
var info = pdfEditor.AddText(currentPage, element);
currentPage = info.LastPageRectangle.PageNumber; // follow the engine if it overflowed
crtYPos = (int)info.LastPageRectangle.Bounds.Bottom + ySeparator;
All 3 samples of this topic, complete: references/examples.md.
Full topic: https://www.evopdf.com/help/evopdf-next-dotnet/html/add-text-to-existing-pdf.htm
All 1 samples of this topic, complete: references/examples.md.
Full topic: https://www.evopdf.com/help/evopdf-next-dotnet/html/add-images-to-existing-pdf.htm
All 1 samples of this topic, complete: references/examples.md.
Full topic: https://www.evopdf.com/help/evopdf-next-dotnet/html/add-shapes-to-existing-pdf.htm
All 1 samples of this topic, complete: references/examples.md.
Full topic: https://www.evopdf.com/help/evopdf-next-dotnet/html/add-paths-and-polygons-to-existing-pdf.htm
Licensing.LicenseKey is a static field, assigned once per process before any conversion.Async that takes a CancellationToken.Compilable versions of the samples above: https://github.com/EvoPdf/evopdf-next-samples/tree/main/docs-samples