agentic-net-examples / conversion
AGENTS.md2 starsChanged 4 months agoMITView on GitHub
C# examples for conversion using Aspose.PDF for .NET
2 other projects use a version of this.
Adopted by
Most recently taken up by
- aspose-words/agentic-net-examplestheir own version, first seen Sep 9, 2026
- aspose-imaging/agentic-net-examplestheir own version, first seen Apr 22, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- aspose-words/agentic-net-examples★ 4same name
- aspose-imaging/agentic-net-examples★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository36 other files it gives its agents.
- accessibility-and-tagged-pdfsAGENTS.md
- aspose-pdf-examplesAGENTS.md
- basic-operationsAGENTS.md
- compare-pdfAGENTS.md
- documentAGENTS.md
- facades-acroformsAGENTS.md
- facades-annotationsAGENTS.md
- facades-bookmarksAGENTS.md
- facades-convert-documentsAGENTS.md
- facades-documentsAGENTS.md
- facades-edit-documentAGENTS.md
- facades-extract-images-and-textAGENTS.md
- facades-fill-formsAGENTS.md
- facades-formsAGENTS.md
- facades-metadataAGENTS.md
- facades-pagesAGENTS.md
- facades-secure-documentsAGENTS.md
- facades-sign-documentsAGENTS.md
- facades-stampsAGENTS.md
- facades-texts-and-imagesAGENTS.md
- facades-xmp-metadataAGENTS.md
- graphs-zugferd-operatorsAGENTS.md
- pagesAGENTS.md
- parse-pdfAGENTS.md
- securing-and-signing-pdfAGENTS.md
- stampingAGENTS.md
- uncategorizedAGENTS.md
- working-with-annotationsAGENTS.md
- working-with-attachmentsAGENTS.md
- working-with-formsAGENTS.md
- working-with-graphsAGENTS.md
- working-with-imagesAGENTS.md
- working-with-tablesAGENTS.md
- working-with-textAGENTS.md
- working-with-xmlAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 121
Create a {load_options} of type Aspose.Pdf.SvgLoadOptions and use it to instantiate a {doc} from an {input_svg} file path.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS - conversion
Conversion in PDF using C# / .NET -- 101 verified, compile-tested examples for Aspose.PDF for .NET 26.8.0. Each
.csfile is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing.
Persona
You are a C# developer specializing in PDF processing using Aspose.PDF for .NET, working within the conversion category. This folder contains standalone C# examples for conversion operations. See the root agents.md for repository-wide conventions and boundaries.
Scope
- This folder contains examples for conversion.
- Files are standalone
.csexamples stored directly in this folder.
Required Namespaces
using Aspose.Pdf;(101/101 files) ← category-specificusing Aspose.Pdf.Devices;(17/101 files)using Aspose.Pdf.Text;(8/101 files)using Aspose.Pdf.Annotations;(3/101 files)using Aspose.Pdf.Drawing;(1/101 files)using Aspose.Pdf.Facades;(1/101 files)using Aspose.Pdf.LogicalStructure;(1/101 files)using Aspose.Pdf.Tagged;(1/101 files)using System;(101/101 files)using System.IO;(101/101 files)using System.IO.Compression;(5/101 files)using System.Text;(4/101 files)using System.Collections.Generic;(2/101 files)using System.Linq;(2/101 files)using System.Text.RegularExpressions;(2/101 files)using System.Xml.Linq;(2/101 files)using System.Diagnostics;(1/101 files)using System.Drawing;(1/101 files)using System.Text.Json;(1/101 files)
Common Code Pattern
Most files follow this pattern:
using (Document doc = new Document("input.pdf"))
{
// ... operations ...
doc.Save("output.pdf");
}Files in this folder
| File | Title | Key APIs | Description |
| add-external-text-file-attachment-to-pdfa3b | Add External Text File Attachment to PDF/A‑3b Document | Document, FileSpecification, FileAttachmentAnnotation | Demonstrates how to embed an external text file as a file attachment annotation and convert the P... |
| add-external-xml-attachment-to-pdfa | Add External XML Attachment to PDF/A‑1b Document | Document, Convert, FileSpecification | Demonstrates converting a PDF to PDF/A‑1b and attaching an external XML file as a file‑attachment... |
| batch-convert-pdfs-to-jpeg-custom-naming | Batch Convert PDFs to JPEG with Custom Naming | Document, JpegDevice, Resolution | Demonstrates how to convert all PDF files in a folder to JPEG images page‑by‑page using Aspose.Pd... |
| batch-convert-pdfs-to-multi-page-tiff | Batch Convert PDFs to Multi‑Page TIFF | Document, Add, TiffDevice | Demonstrates how to merge several PDF files into a single document and then convert the combined ... |
| batch-convert-pdfs-to-png | Batch Convert PDFs to PNG Preserving Folder Structure | Document, PngDevice, Resolution | Demonstrates how to recursively locate PDF files, keep their relative folder hierarchy, and conve... |
| batch-convert-pdfs-to-pptx-slides-as-images | Batch Convert PDFs to PPTX with SlidesAsImages | Document, ctor, PptxSaveOptions | Iterates through PDF files in a folder and converts each to a PPTX presentation using Aspose.Pdf,... |
| convert-epub-to-pdf-custom-page-size | Convert EPUB to PDF with Custom Page Size | EpubLoadOptions, Document, Save | Demonstrates loading an EPUB file with EpubLoadOptions to set a custom page size and converting i... |
| convert-latex-to-pdf | Convert LaTeX (.tex) to PDF with Aspose.Pdf | TeXLoadOptions, Document, Save | Demonstrates loading a LaTeX (.tex) file using Aspose.Pdf's TeXLoadOptions and converting it to a... |
| convert-markdown-to-pdf-preserving-code-blocks | Convert Markdown to PDF Preserving Code Blocks | MdLoadOptions, Document, Save | Demonstrates loading a Markdown file with MdLoadOptions and converting it to a PDF while keeping ... |
| convert-ofd-to-pdf | Convert OFD to PDF with Aspose.Pdf | Document, OfdLoadOptions, Save | Demonstrates loading an OFD file using OfdLoadOptions and saving it as a PDF with default settings. |
| convert-pcl-to-pdf-hpgl2 | Convert PCL to PDF with HP‑GL/2 Vectors | PclLoadOptions, Document, ctor | Demonstrates loading a PCL file (including HP‑GL/2 vector data) using Aspose.Pdf and saving it as... |
| convert-pdf-page-to-jpeg | Convert PDF Page to JPEG Image | Document, JpegDevice, Page | Demonstrates how to load a PDF, validate a page number, and convert that specific page to a JPEG ... |
| convert-pdf-pages-to-separate-html-files | Convert PDF Pages to Separate HTML Files | Document, HtmlSaveOptions, Save | Demonstrates how to use Aspose.Pdf to convert each page of a PDF into its own HTML file by enabli... |
| convert-pdf-to-bmp-images | Convert PDF to BMP Images | Document, BmpDevice, Pages | Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and render each page to a BMP... |
| convert-pdf-to-doc-default | Convert PDF to DOC with Default Settings | Document, DocSaveOptions, DocFormat | Demonstrates converting a PDF file to the legacy DOC format using Aspose.Pdf with default text ex... |
| convert-pdf-to-doc-image-extraction | Convert PDF to DOC with Image Extraction (Textbox Mode) | Document, DocSaveOptions, Format | Demonstrates how to convert a PDF file to a DOC document using Aspose.Pdf with custom recognition... |
| convert-pdf-to-doc-plain-text | Convert PDF to DOC with Plain Text Extraction | Document, DocSaveOptions, DocFormat | Shows how to convert a PDF file to a DOC file using Aspose.Pdf, configuring DocSaveOptions to ext... |
| convert-pdf-to-docx-add-table-of-figures | Convert PDF to DOCX and Add Table of Figures | Document, Page, XImage | Demonstrates converting a PDF file to DOCX using Aspose.Pdf while extracting images, generating c... |
| convert-pdf-to-docx-and-pdfa | Convert PDF to DOCX and then to PDF/A | Document, DocSaveOptions, DocFormat | Demonstrates loading a PDF with Aspose.Pdf, converting it to a DOCX file, and then creating a PDF... |
| convert-pdf-to-docx-and-zip | Convert PDF to DOCX and Zip the Result | Document, DocSaveOptions, Save | Shows how to use Aspose.Pdf to convert a PDF file to DOCX format and then compress the generated ... |
| convert-pdf-to-docx-auto-detection | Convert PDF to DOCX with Automatic Content Detection | Document, DocSaveOptions, DocFormat | Demonstrates how to convert a PDF file to DOCX using Aspose.Pdf with the DocSaveOptions.Mode set ... |
| convert-pdf-to-docx-enhanced-flow | Convert PDF to DOCX with Enhanced Flow Mode | Document, DocSaveOptions, RecognitionMode | Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf with the enhanced flow... |
| convert-pdf-to-docx-extract-images | Convert PDF to DOCX and Extract Embedded Images | Document, DocSaveOptions, Save | Demonstrates how to convert a PDF file to DOCX format using Aspose.Pdf and then iterate through e... |
| convert-pdf-to-docx-layout | Convert PDF to DOCX with Layout Preservation | Document, DocSaveOptions, RecognitionMode | Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf's standard textbox recogni... |
| convert-pdf-to-docx-with-embedded-fonts | Convert PDF to DOCX with Embedded Fonts | Document, DocSaveOptions, DocFormat | Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf while embedding fonts to p... |
| convert-pdf-to-docx-with-footnotes | Convert PDF to DOCX with Footnotes Preservation | Document, DocSaveOptions, DocFormat | Demonstrates converting a PDF file to DOCX using Aspose.Pdf while preserving footnotes by enablin... |
| convert-pdf-to-docx-with-hyphenation | Convert PDF to DOCX with Hyphenation and Flow Settings | Document, DocSaveOptions, Format | Demonstrates converting a PDF file to DOCX using Aspose.Pdf while applying flow‑based recognition... |
| convert-pdf-to-docx-with-metadata | Convert PDF to DOCX with Author and Title Metadata | Document, DocumentInfo, DocSaveOptions | Demonstrates loading a PDF with Aspose.Pdf, setting author and title metadata, and converting it ... |
| convert-pdf-to-docx-with-stats | Convert PDF to DOCX with Conversion Statistics | Document, DocSaveOptions, DocFormat | Demonstrates how to use Aspose.Pdf to convert a PDF file to DOCX format while capturing conversio... |
| convert-pdf-to-emf-images | Convert PDF Pages to EMF Images with Vector Preservation | Document, EmfDevice, Resolution | Demonstrates how to load a PDF document and convert each page to an EMF image using Aspose.Pdf's ... |
| ... | and 71 more files |
Category Statistics
- Total examples: 101
Category-Specific Tips
Key API Surface
Aspose.Pdf.CgmLoadOptionsAspose.Pdf.ConvertErrorActionAspose.Pdf.DocumentAspose.Pdf.Document.SaveAspose.Pdf.EpubLoadOptionsAspose.Pdf.ExcelSaveOptionsAspose.Pdf.ExcelSaveOptions.ExcelFormatAspose.Pdf.FileSpecificationAspose.Pdf.ImageAspose.Pdf.LoadOptionsAspose.Pdf.MarginInfoAspose.Pdf.MdLoadOptionsAspose.Pdf.MhtLoadOptionsAspose.Pdf.PageAspose.Pdf.Page.Paragraphs
Rules
- Load a PDF file {input_pdf} into an Aspose.Pdf.Document instance and call Document.Save({output_excel}, ExcelSaveOptions) to export to Excel.
- Set ExcelSaveOptions.Format = ExcelSaveOptions.ExcelFormat.XLSX to generate an .xlsx file instead of the default .xls.
- Set ExcelSaveOptions.InsertBlankColumnAtFirst = {bool} to control whether a blank column is added at the beginning of each worksheet.
- Set ExcelSaveOptions.MinimizeTheNumberOfWorksheets = {bool} to combine all PDF pages into a single worksheet when true.
- Create a {load_options} of type Aspose.Pdf.SvgLoadOptions and use it to instantiate a {doc} from an {input_svg} file path.
Warnings
- The example assumes the presence of an input PDF file at the specified path.
- Output file paths are hard‑coded; in production code they should be configurable.
- The example assumes the CGM file exists at the specified path and that the Aspose.PDF license (if required) is already configured.
- The example assumes the presence of a valid Aspose.PDF license; without it, the output may contain a watermark.
- Placeholder {string_literal} is used for both input and output file paths; adjust as needed for your environment.
General Tips
- See parent AGENTS.md for:
- Boundaries -- Always / Ask First / Never rules for all examples
- Common Mistakes -- verified anti-patterns that cause build failures
- Domain Knowledge -- cross-cutting API-specific gotchas
- Testing Guide -- build and run verification steps
- Review code examples in this folder for conversion patterns
<!-- AUTOGENERATED:START -->Updated: 2026-08-20 | Run: 20260820_001147_12d7b3
<!-- AUTOGENERATED:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

