Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Cropping to PDF

$
0
0
I'm using the following code to crop a region of interest in an image, then save only the cropped section to a new file:
Dim g As New ImageMagick.MagickGeometry(rect)
image.Crop(g)
image.RePage()
image.Write(fileName)
It works great when saving as an image (.png, .jpg, etc.). However, when the output is PDF, the result is a blank PDF document. If I comment out the image.RePage() line, the crop works as expected... it's just the repage that's not working. Is this a known issue? Are there any workarounds?

I'm using Magick.NET-Q8-x86 Version 7.0.0.0009.

Thanks!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>