Replies: 1 comment 1 reply
-
@dlemstra sorry for the direct ping. I am still stuck on this. Please let me know if you have any pointers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, how can I set the below option using Magick.NET?
"By default, ImageMagick sets the page size to the MediaBox. Some PDF files, however, have a CropBox that is smaller than the MediaBox and may include white space, registration or cutting marks outside the CropBox. To force ImageMagick to use the CropBox rather than the MediaBox, use -define (e.g.
-define pdf:use-cropbox=true
)."This is my version of Magick.NET
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="8.3.1" />
Update:
I came across
PdfReadDefines
but I get an error on trying to use it:The type or namespace name 'PdfReadDefines' could not be found (are you missing a using directive or an assembly reference?)
I have these two imports already.
This is what I am trying to do: (The other lines do not throw any errors)
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions