
syncfusion-dotnet-pdf-to-image
Convert PDF files to images with customization options (output format, DPI, pages, scaling, and image quality). Supports one mode — generate C code for the user's project.
- Installs
- 98
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-dotnet-pdf-to-image- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-dotnet-pdf-to-image automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Pdf To Image Converter Using Syncfusion .NET PDF Library
Overview
This PDF to image converter library allows converting PDF documents to images without opening the document in the PDF Viewer control. It allows you to selectively export pages as a stream by utilizing the ‘Convert’ method, facilitating the transformation of PDF files into images.
Quick Start Examples
Example 1: Generate Code
User: "Show me the C# code to convert pdf to image." Result: C# code snippet displayed (no files created)
One Mode
Mode 1: Generate C# Code for the User's Project (default)
Use this mode when the user wants to view, write, review, refactor, or modify C# code related to pdf to image conversion processing. Licensing, authentication, and secret configuration are out of scope.
Trigger keywords: "show me how", "how to", "how can I", "how do I", "provide code", "provide an example", "give an example", "demonstrate", "code snippet", "sample code", "example", "sample", "give me", "show me", "Program.cs", "example code", "generate code for", "codesnippet".
Workflow:
Step 1 — Detect Application Type and Suggest Required NuGet Packages
-
Inspect the workspace project files (
.csproj,web.config,App.config,Startup.cs,Program.cs, etc.) and use the detection signals table inreferences/nuget-packages.mdto determine the application type. -
Based on the detected application type, identify the correct NuGet package(s) from references/nuget-packages.md and instruct the user to install them before generating any code.
Step 2 — Generate Code from Reference Files Only
Do NOT invent, guess, or suggest any API, method, property, class, or namespace not explicitly present in the reference files.
- Read the relevant
references/*.mdfile(s) for the requested feature - Build C# code strictly from the APIs and snippets found in those files.
- Exclude any licensing, authentication, or secret‑handling logic.
- Do not create or run any
.csxscript
API Summary
| API / Property | Purpose |
|---|---|
new PdfToImageConverter(stream) | Loads a PDF document from a stream via constructor |
new PdfToImageConverter(stream, password) | Loads an encrypted PDF document from a stream via constructor |
imageConverter.Load(stream) | Loads a PDF document from a stream using the Load method |
imageConverter.Load(stream, password) | Loads an encrypted PDF document from a stream using the Load method |
imageConverter.Convert(pageIndex, keepTransparency, isSkipAnnotations) | Converts a single PDF page to an image stream |
imageConverter.Convert(startPage, endPage, keepTransparency, isSkipAnnotations) | Converts a range of PDF pages to an array of image streams |
imageConverter.Convert(pageIndex, SizeF, keepAspectRatio, keepTransparency, isSkipAnnotations) | Converts a PDF page to an image with a custom width and height |
imageConverter.Convert(startPage, endPage, dpiX, dpiY, keepTransparency, isSkipAnnotations) | Converts a range of PDF pages to images at a custom DPI resolution (MVC / WinForms / WPF) |
imageConverter.Convert(pageIndex, zoomFactor, tileXCount, tileYCount, tileX, tileY) | Converts a PDF page to an image using zoom factor and tile matrix coordinates (ASP.NET Core / Blazor) |
imageConverter.Convert(startPageIndex, endPageIndex, SizeF, dpiX, dpiY, keepAspectRatio, keepTransparency, isSkipAnnotations) | Converts a range of PDF pages to image streams with a custom size and DPI resolution (MVC / WinForms / WPF) |
imageConverter.Convert(startPageIndex, endPageIndex, SizeF, keepAspectRatio, keepTransparency, isSkipAnnotations) | Converts a range of PDF pages to image streams with a custom width and height. |
imageConverter.Convert(pageIndex, SizeF, dpiX, dpiY,keepAspectRatio, keepTransparency, isSkipAnnotations) | Converts a single PDF page to an image with a custom size and DPI. |
imageConverter.Dispose() | Releases all resources used by the PdfToImageConverter. |
imageConverter.PageCount | Gets the total number of pages in the loaded PDF document |
imageConverter.ScaleFactor | Sets the scale factor to enhance output image quality (default: 1.5f) |
imageConverter.ReferencePath | Sets a custom folder path for PDFium binary extraction in restricted-access environments |
Code References
All templates and snippets are in the references/ folder:
| File | Contents |
|---|---|
nuget-packages.md | Lists the required NuGet packages for PDFToImageConverter per target platform, with application-type detection signals |
load.md | Loads a PDF document (plain or encrypted) as a stream into PdfToImageConverter using the constructor or the Load method. After the conversion, dispose of the PdfToImageConverter using the Dispose method |
customizing-conversion.md | Converts PDF pages to images — single page, page range, custom size, custom DPI, and zoom/tile resolution |
multithreading-pdf-to-image.md | Converts PDF pages to images using multithreading — via Task-based async and Parallel.For patterns |
Rules
- Output files go in
./output/directory - Don't use any API which is not in reference
Prerequisites
- Install required runtime and library packages from NuGet before generating code.
- .NET SDK 8+
FAQ
What does the syncfusion-dotnet-pdf-to-image skill do?
Convert PDF files to images with customization options (output format, DPI, pages, scaling, and image quality). Supports one mode — generate C code for the user's project.
How do I install syncfusion-dotnet-pdf-to-image?
Run npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-dotnet-pdf-to-image in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-dotnet-pdf-to-image/ (personal) or .claude/skills/syncfusion-dotnet-pdf-to-image/ (project).
Which AI agents can use syncfusion-dotnet-pdf-to-image?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-dotnet-pdf-to-image safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-dotnet-pdf-to-image?
It is published by syncfusion in syncfusion/document-sdk-skills. It has 98 recorded installs.
More from syncfusion/document-sdk-skills
syncfusion-dotnet-word
syncfusion/document-sdk-skills
Create, edit, format, and convert Word (.docx) documents using Syncfusion DocIO for .NET. Use this skill for Word processing and DOCX automation when the user asks to generate Word files, modify document content, insert tables or images, apply formatting, automate document workflows, or convert Word to PDF using C code or CSX execution.
syncfusion-dotnet-powerpoint
syncfusion/document-sdk-skills
Create, edit, format, and convert PowerPoint (.pptx) presentations using Syncfusion Presentation for .NET. Use this skill for PowerPoint processing and presentation automation when the user asks to generate slides, modify PPTX content, insert text or images, build presentations programmatically, or convert PowerPoint to PDF using C code or CSX execution.
syncfusion-dotnet-pdf
syncfusion/document-sdk-skills
Create, read, edit, secure, sign, and convert PDF documents (.pdf) using Syncfusion PDF Library for .NET. Use this skill for PDF processing and document automation when the user asks to generate PDF files, modify PDF content, add security or signatures, extract text or images, merge or split PDFs, or perform PDF/A conversion using C code or CSX execution.
syncfusion-dotnet-excel
syncfusion/document-sdk-skills
Create, edit, and convert Excel workbooks (.xlsx/.xls) using Syncfusion XlsIO. Supports two modes — generate C code for the user's project, or execute a temporary CSX script. Use when the user mentions Excel, xlsx, workbook, template markers, Syncfusion XlsIO, PDF conversion, or custom fonts for Excel-to-PDF or Excel-to-Image conversion.
syncfusion-java-word
syncfusion/document-sdk-skills
Create, edit, and convert Word documents (.docx) using Syncfusion DocIO. Supports to generate java code for the user's project. Use when the user mentions docx, Word processing, document generation, Syncfusion DocIO, or syncfusion java word.
syncfusion-javascript-pdf
syncfusion/document-sdk-skills
Provides comprehensive guidance for implementing the Syncfusion JavaScript PDF library (@syncfusion/ej2-pdf) to create and manipulate PDF documents programmatically across TypeScript, JavaScript, Angular, React, Vue, and ASP.NET platforms. Use this when working with PDF creation, tables, lists, form filling, annotations, encryption, document merging/splitting, text or image extraction, or digital signatures.
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
hyperframes-creative
heygen-com/hyperframes
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image