Crop image from PDF - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Crop image from PDF

Crop image from PDF 3 years 11 months ago #9215

  • ahmbar
  • ahmbar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Crop image from PDF 3 years 11 months ago #9217

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 579
  • Karma: 6
  • Thank you received: 48
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.

Please Log in or Create an account to join the conversation.

Crop image from PDF 3 years 11 months ago #9226

  • ahmbar
  • ahmbar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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 ?

Please Log in or Create an account to join the conversation.

Crop image from PDF 3 years 11 months ago #9229

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 18
  • Thank you received: 65
Hi,
to crop area in the pdf to a Bitmap, you can use
page.RenderToBmp(Bitmap, Matrix);
For more info check this .
The following user(s) said Thank You: ahmbar

Please Log in or Create an account to join the conversation.

Crop image from PDF 3 years 11 months ago #9238

  • ahmbar
  • ahmbar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Last edit: by ahmbar.
  • Page:
  • 1
Powered by Kunena Forum