Skip to content

Add 122 document code examples to PDF library#190

Merged
fahadadeel merged 2 commits into
release/26.3.0from
examples/11efda07-document
Apr 10, 2026
Merged

Add 122 document code examples to PDF library#190
fahadadeel merged 2 commits into
release/26.3.0from
examples/11efda07-document

Conversation

@agent-aspose-pdf-examples

Copy link
Copy Markdown
Collaborator

document

122 code example(s) for the document category.
Target: Aspose.PDF for .NET 26.3.0

Examples

# Example Difficulty
1 Create PDF with Custom Title Page beginner
2 Insert High-Resolution Image into PDF with Absolute Positioning beginner
3 Create Searchable PDF from Scanned Images using OCR Overlay intermediate
4 Add Indented Paragraph with Line Spacing to PDF intermediate
5 Add Multi‑Level Table of Contents to PDF intermediate
6 Customize TOC Entry Formatting with Tab Leaders intermediate
7 Remove a Page from PDF and Renumber Remaining Pages beginner
8 Insert Blank Cover Page into PDF beginner
9 Replace Text in PDF While Preserving Formatting beginner
10 Extract Images from PDF and Save as PNG beginner
11 Add Digital Signature Field and Sign PDF with Self‑Signed Certificate intermediate
12 Validate PDF for PDF/A‑1A Compliance and Generate Report beginner
13 Validate PDF for PDF/A-1B Compliance beginner
14 Remove Metadata and Embedded Files from PDF beginner
15 Set PDF Expiration Date with JavaScript beginner
16 Flatten Interactive PDF Form Fields beginner
17 Check PDF for Incremental Updates beginner
18 Monitor PDF Conversion Progress with Custom Progress Handler intermediate
19 Create Watermark Layer and Merge PDF Layers intermediate
20 Add Accessibility Tags (Heading, Paragraph, Table) to PDF intermediate
21 Attach PDF Portfolio and Set Custom Description Metadata intermediate
22 Read and Update PDF Metadata beginner
23 Apply Password Protection and Permissions to a PDF beginner
24 Print PDF Document Using Aspose.Pdf Viewer beginner
25 Interrupt and Resume Large PDF Save intermediate
26 Generate Crash Report PDF from Exception intermediate
27 Embed ZUGFeRD XML into PDF and Verify Embedding intermediate
28 Add JavaScript Open Action to PDF beginner
29 Convert Multiple HTML Fragments to a Single PDF with Custom Options intermediate
30 Add Styled Table with Borders and Alternating Row Colors to PDF intermediate
31 Add Hyperlink Annotation to PDF beginner
32 Replace Image in PDF Page beginner
33 Add Page Numbers to PDF Footer beginner
34 Create PDF with Multiple Page Sizes and Orientations intermediate
35 Merge Two PDFs While Preserving Bookmarks beginner
36 Extract Text from PDF Page Range intermediate
37 Add Company Logo Header to PDF Pages beginner
38 Set PDF Creation/Modification Dates and Keywords beginner
39 Create PDF with Embedded TrueType Font beginner
40 Apply Semi-Transparent Image Overlay to PDF Pages beginner
41 Create PDF with Clickable Table of Contents intermediate
42 Remove All Annotations from PDF beginner
43 Add a Signature Field to a PDF Document intermediate
44 Encrypt PDF with AES‑256 and Restrict Printing/Copying beginner
45 Create PDF Portfolio with Multiple PDFs intermediate
46 Add Custom XML Metadata to PDF Document intermediate
47 Add Custom Colored Line Annotation to PDF beginner
48 Replace PDF Page with HTML-generated Page intermediate
49 Add JavaScript Sum Calculation to PDF Form intermediate
50 Create PDF with Dynamic Table from DataTable intermediate
... 72 more examples

Key APIs Used

Aspose.Pdf.AnnotationCollection.Clear, Aspose.Pdf.Annotations.Annotation, Aspose.Pdf.Annotations.AnnotationCollection, Aspose.Pdf.Annotations.AnnotationCollection.Delete, Aspose.Pdf.Annotations.AnnotationFlags, Aspose.Pdf.Annotations.Border, Aspose.Pdf.Annotations.DefaultAppearance, Aspose.Pdf.Annotations.Delete, Aspose.Pdf.Annotations.FileAttachmentAnnotation, Aspose.Pdf.Annotations.FileHyperlink, Aspose.Pdf.Annotations.FileIcon, Aspose.Pdf.Annotations.GoToAction, Aspose.Pdf.Annotations.GoToURIAction, Aspose.Pdf.Annotations.JavascriptAction, Aspose.Pdf.Annotations.LineAnnotation, Aspose.Pdf.Annotations.LinkAnnotation, Aspose.Pdf.Annotations.PopupAnnotation, Aspose.Pdf.Annotations.TextAnnotation, Aspose.Pdf.AutoTaggingSettings, Aspose.Pdf.Border, Aspose.Pdf.BorderInfo, Aspose.Pdf.Cell, Aspose.Pdf.Cell.Paragraphs.Add, Aspose.Pdf.Collection, Aspose.Pdf.Color, Aspose.Pdf.ColumnInfo, Aspose.Pdf.CrashReportOptions, Aspose.Pdf.CryptoAlgorithm, Aspose.Pdf.Devices.ColorDepth, Aspose.Pdf.Devices.CompressionType
(+197 more)

Tags

Aspose.Pdf C# OCR PDF XML XMP ZUGFeRD absolute-position accessibility advertisement aes-256 alert annotation annotations appearance aspnet aspose aspose-pdf aspose.pdf asynchronous

Difficulty Distribution

  • beginner: 55 example(s)
  • intermediate: 67 example(s)

Pipeline Stages

  • Baseline (1st try): 57
  • LLM Fix: 50
  • Regen with KB: 14
  • Pattern Fix: 1

Generated by Examples Generator

@fahadadeel fahadadeel merged commit 4c68e1a into release/26.3.0 Apr 10, 2026
1 check passed
@fahadadeel fahadadeel deleted the examples/11efda07-document branch May 7, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants