Skip to content

Add 55 basic operations code examples - #429

Merged
fahadadeel merged 1 commit into
release/26.9.0from
examples/3c4ba60c-basic-operations
Sep 25, 2026
Merged

fahadadeel merged 1 commit into
release/26.9.0from
examples/3c4ba60c-basic-operations

Conversation

@agent-aspose-pdf-examples

Copy link
Copy Markdown
Collaborator

basic-operations

55 code example(s) for the basic-operations category.
Target: Aspose.PDF for .NET 26.9.0

Examples

# Example Difficulty
1 Open PDF and Get Page Count beginner
2 Open PDF from FileStream and Save to New File beginner
3 Open Encrypted PDF Without Password beginner
4 Save PDF to MemoryStream and Write to File beginner
5 Convert PDF to PDF/A‑1b with Metadata Preservation beginner
6 Convert PDF to PDF/X‑3 while Preserving Color Profiles beginner
7 Encrypt PDF with Passwords and Restrict Printing beginner
8 Decrypt Encrypted PDF with User Password beginner
9 Add Blank Page to PDF Document beginner
10 Insert PDF Page into Another PDF at Specific Position beginner
11 Remove Third Page from PDF beginner
12 Split PDF into Single-Page Files beginner
13 Batch Convert PDFs to PDF/A-1b intermediate
14 Encrypt PDF from URL and Save to Stream intermediate
15 Create PDF/X‑3 Document with Multiple Pages beginner
16 Update PDF Title Metadata from Byte Array beginner
17 Save PDF with Incremental Update beginner
18 Compress PDF Using Default Settings beginner
19 Export PDF Pages to Separate Files beginner
20 Load PDF from MemoryStream and Set PDF Version to 1.4 intermediate
21 Encrypt PDF with Form Fill Permission Only beginner
22 Create PDF/A‑1b Document with Text Paragraph beginner
23 Rotate Second Page of PDF by 90 Degrees beginner
24 Update PDF Author Metadata with Aspose.Pdf beginner
25 Batch Encrypt PDFs with a User Password intermediate
26 Batch Decrypt Encrypted PDFs with Owner Password beginner
27 Convert PDF to PDF/A‑1b with Structure Preservation beginner
28 Download PDF from URL and Save Locally with Aspose.Pdf beginner
29 Encrypt PDF with AES‑256 and Verify No Printing Permission intermediate
30 Change PDF Version to 1.5 and Save with Incremental Update intermediate
31 Update User Password of a Protected PDF intermediate
32 Split PDF into Two Parts at Page Ten intermediate
33 Set PDF Document Title and Verify beginner
34 Convert PDF to PDF/A-1b with Font Embedding beginner
35 Convert PDF to PDF/X‑3 with CMYK Color Space intermediate
36 Batch Convert PDFs to PDF/A-1b with CSV Logging intermediate
37 Rotate Page 3 of PDF from Byte Array beginner
38 Encrypt PDF with User Password and Restricted Permissions beginner
39 Encrypt PDF Allowing Only Form Filling beginner
40 Batch Split PDF into Single-Page PDFs in Separate Folders beginner
41 Update PDF Author Metadata beginner
42 Encrypt PDF with 128‑bit RC4 and Verify Size Increase beginner
43 Batch Encrypt PDFs with User Passwords from Config intermediate
44 Convert PDF to PDF/X‑3 with ICC Profile Preservation beginner
45 Batch Convert PDFs to PDF/A-1b with Compression intermediate
46 Add Custom XMP Metadata to PDF beginner
47 Encrypt PDF with Owner Password Only beginner
48 Rotate All PDF Pages 180 Degrees beginner
49 Encrypt PDF with AES‑128 and Verify Print Permission intermediate
50 Convert PDF to PDF/A-1B Compliance beginner
... 5 more examples

Key APIs Used

Aspose.Pdf.ConvertErrorAction, Aspose.Pdf.CryptoAlgorithm, Aspose.Pdf.Document, Aspose.Pdf.Document(Stream), Aspose.Pdf.Document..ctor(string), Aspose.Pdf.Document.Convert, Aspose.Pdf.Document.Decrypt, Aspose.Pdf.Document.Decrypt(), Aspose.Pdf.Document.Encrypt, Aspose.Pdf.Document.Info, Aspose.Pdf.Document.IsEncrypted, Aspose.Pdf.Document.Metadata, Aspose.Pdf.Document.Pages, Aspose.Pdf.Document.Pages.Add, Aspose.Pdf.Document.Pages.Count, Aspose.Pdf.Document.Permissions, Aspose.Pdf.Document.Save, Aspose.Pdf.Document.Save(), Aspose.Pdf.DocumentInfo, Aspose.Pdf.DocumentInfo.Author, Aspose.Pdf.DocumentInfo.Subject, Aspose.Pdf.DocumentInfo.Title, Aspose.Pdf.InvalidPasswordException, Aspose.Pdf.Metadata.Item, Aspose.Pdf.Metadata.RegisterNamespaceUri, Aspose.Pdf.Page, Aspose.Pdf.PageCollection, Aspose.Pdf.PageCollection.Add, Aspose.Pdf.PageCollection.Count, Aspose.Pdf.PageCollection.Delete
(+10 more)

Tags

Aspose.Pdf ICC PDF/X-3 add-pages aes-128 aes-256 aes256 append-page archival aspose aspose-pdf aspose.pdf author batch batch processing batch-conversion blank-page byte-array c# cmyk

Difficulty Distribution

  • beginner: 39 example(s)
  • intermediate: 16 example(s)

Pipeline Stages

  • Baseline (1st try): 31
  • LLM Fix: 20
  • Regen with KB: 3
  • Final LLM Recovery: 1

Generated by Examples Generator

@fahadadeel
fahadadeel merged commit 7ef87ec into release/26.9.0 Sep 25, 2026
2 checks passed
@fahadadeel
fahadadeel deleted the examples/3c4ba60c-basic-operations branch September 25, 2026 05:27
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