- Posts: 5
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Crop image from PDF
10 years 6 months ago #9215
by ahmbar
Crop image from PDF was created by ahmbar
How can i crop area in the PDF as image ?
Is there a way that i can crop image from the PDF the same way i draw rectangle
Is there a way that i can crop image from the PDF the same way i draw rectangle
10 years 6 months ago #9217
by support
Replied by support on topic Crop image from PDF
Do you mean an image from an annotation?
Actually there's no way to do that.
The only workaround would be to crop the image just before adding it as annotation.
We will evaluate your request to introduce new api.
Actually there's no way to do that.
The only workaround would be to crop the image just before adding it as annotation.
We will evaluate your request to introduce new api.
10 years 6 months ago #9226
by ahmbar
Replied by ahmbar on topic Crop image from PDF
No my question not about adding image i want to export a cropped area in the PDF into image like export article as image.
is it possible and how ?
is it possible and how ?
10 years 6 months ago #9229
by Davide
Replied by Davide on topic Crop image from PDF
Hi,
to crop area in the pdf to a Bitmap, you can use
For more info check
this
.
to crop area in the pdf to a Bitmap, you can use
Code:
page.RenderToBmp(Bitmap, Matrix);
10 years 6 months ago - 10 years 6 months ago #9238
by ahmbar
Replied by ahmbar on topic Crop image from PDF
Thanks David for the answer
It is worked with me to export PDF image using following matrix:
Matrix matrix = new Matrix(1, -1, 0, height);
The issue is Matrix not well documented, how to export specific area in the PDF that I have the Rect (left, top, right, bottom) for the area
It is worked with me to export PDF image using following matrix:
Matrix matrix = new Matrix(1, -1, 0, height);
The issue is Matrix not well documented, how to export specific area in the PDF that I have the Rect (left, top, right, bottom) for the area
Last edit: 10 years 6 months ago by ahmbar.
Time to create page: 0.792 seconds