Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to using ImageMagick converting pdf specific page to image #6796

Open
futureflsl opened this issue Oct 17, 2023 · 1 comment
Open

how to using ImageMagick converting pdf specific page to image #6796

futureflsl opened this issue Oct 17, 2023 · 1 comment

Comments

@futureflsl
Copy link

ImageMagick version

7.2.0

Operating system

Windows

Operating system, version and so on

windows C#

Description

var pdfFile = @"H:\test.pdf";
MagickImage mi = new MagickImage(pdfFile,MagickFormat.Pdf);
mi.Write("1.jpg",MagickFormat.Jpeg)

this code just convert the first page to image.I want to convert the sencond page to image,Hoo to do it?

Steps to Reproduce

this code just convert the first page to image.I want to convert the sencond page to image,Hoo to do it?

Images

this code just convert the first page to image.I want to convert the sencond page to image,Hoo to do it?

@fmw42
Copy link

fmw42 commented Oct 17, 2023

Try

var pdfFile = @"H:\test.pdf[1]";

IM indexes from 0 is first page, 1 is second page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants