Skip to content

Add 117 document code examples to PDF library - #355

Merged
fahadadeel merged 2 commits into
release/26.7.0from
examples/fbd7ce72-document
Jul 21, 2026
Merged

Add 117 document code examples to PDF library#355
fahadadeel merged 2 commits into
release/26.7.0from
examples/fbd7ce72-document

Conversation

@agent-aspose-pdf-examples

Copy link
Copy Markdown
Collaborator

document

117 code example(s) for the document category.
Target: Aspose.PDF for .NET 26.7.0

Examples

# Example Difficulty
1 Create PDF Title Page with Custom Font and Color beginner
2 Insert High‑Resolution Image into PDF with Absolute Positioning intermediate
3 Create Searchable PDF from Scanned Images using OCR Overlay intermediate
4 Add Indented Paragraph with Custom Line Spacing to PDF intermediate
5 Remove a Page from PDF and Renumber Remaining Pages beginner
6 Insert Blank Cover Page into PDF beginner
7 Replace Text in PDF While Preserving Formatting intermediate
8 Extract Images from PDF and Save as PNG intermediate
9 Add Digital Signature Field and Sign PDF with Self‑Signed Certificate intermediate
10 Validate PDF for PDF/A-1A Compliance and Generate Report beginner
11 Validate PDF for PDF/A-1B Compliance with Aspose.Pdf beginner
12 Clean PDF by Removing Metadata, Attachments, and JavaScript intermediate
13 Set PDF Expiration Date with JavaScript beginner
14 Flatten PDF Form Fields to Static Content beginner
15 Check PDF for Incremental Updates using Aspose.Pdf beginner
16 Convert PDF to HTML beginner
17 Generate Accessible PDF with Headings, Paragraphs, and Table intermediate
18 Attach PDF Portfolio and Set Custom Metadata intermediate
19 Update PDF Author and Title Metadata with Aspose.Pdf beginner
20 Encrypt PDF with User and Owner Passwords beginner
21 Print PDF Document Using OS Print Verb beginner
22 Interrupt and Resume Large PDF Save Operation intermediate
23 Generate PDF Crash Report from an Exception intermediate
24 Embed ZUGFeRD XML into PDF and Verify Attachment intermediate
25 Add JavaScript Open Action to PDF beginner
26 Create PDF from Multiple HTML Fragments with Custom Options intermediate
27 Add Styled Table with Borders and Alternating Row Colors to PDF intermediate
28 Add Hyperlink Annotation to PDF beginner
29 Replace Existing Image in PDF Page intermediate
30 Add Page Numbers to PDF Footer beginner
31 Create PDF with Multiple Page Sizes and Orientations intermediate
32 Merge Two PDFs While Preserving Bookmarks intermediate
33 Extract Text from Specific PDF Page Range intermediate
34 Add Company Logo Header to PDF Pages intermediate
35 Set PDF Document Metadata (Creation Date, Modification Date, Keywords) beginner
36 Create PDF with Embedded TrueType Font beginner
37 Apply Semi-Transparent Image Watermark to PDF Pages beginner
38 Create PDF with Clickable Table of Contents intermediate
39 Remove All Annotations from a PDF beginner
40 Add Signature Field to PDF with Default Appearance intermediate
41 Encrypt PDF with AES‑256 and Restrict Printing/Copying beginner
42 Create PDF Portfolio with Embedded PDFs intermediate
43 Add Custom XML XMP Metadata to PDF intermediate
44 Add Line Annotation with Custom Color and Thickness to PDF beginner
45 Replace PDF Page with HTML-Generated Page intermediate
46 Add JavaScript Calculation to PDF Form Fields intermediate
47 Create PDF with Dynamic Table from DataTable intermediate
48 Create ZUGFeRD PDF Invoice with Embedded XML intermediate
49 Create PDF with Clickable Index intermediate
50 Add Reusable Background Image to All PDF Pages beginner
... 67 more examples

Key APIs Used

Aspose.Pdf.AnnotationCollection, Aspose.Pdf.AnnotationCollection.Delete, Aspose.Pdf.Annotations.Annotation, Aspose.Pdf.Annotations.AnnotationCollection, Aspose.Pdf.Annotations.AnnotationFlags, Aspose.Pdf.Annotations.Border, Aspose.Pdf.Annotations.DefaultAppearance, Aspose.Pdf.Annotations.FileAttachmentAnnotation, Aspose.Pdf.Annotations.GoToAction, Aspose.Pdf.Annotations.GoToRemoteAction, 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.Collection, Aspose.Pdf.Color, Aspose.Pdf.Comparison.GraphicalPdfComparer, Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages, Aspose.Pdf.ConvertErrorAction.Delete, Aspose.Pdf.CrashReportOptions, Aspose.Pdf.CrashReportOptions.CrashReportDirectory, Aspose.Pdf.CrashReportOptions.CrashReportFilename, Aspose.Pdf.CrashReportOptions.CrashReportPath, Aspose.Pdf.CrashReportOptions.CustomMessage
(+182 more)

Tags

Aspose.Pdf C# Invoice OCR PDF XML ZUGFeRD accessibility aes-256 aes256 alert alternating-rows annotation annotations appearance aspnet aspose aspose-pdf aspose.pdf async

Difficulty Distribution

  • beginner: 53 example(s)
  • intermediate: 64 example(s)

Pipeline Stages

  • Baseline (1st try): 62
  • LLM Fix: 40
  • Regen with KB: 8
  • Final LLM Recovery: 5
  • Pattern Fix: 2

Generated by Examples Generator

@fahadadeel
fahadadeel merged commit 71bb738 into release/26.7.0 Jul 21, 2026
1 check passed
@fahadadeel
fahadadeel deleted the examples/fbd7ce72-document branch July 21, 2026 12:07
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