Image Moving -
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Image Moving

Image Moving 7 months 1 week ago #14306

  •'s Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
hello Team,
I added image to PDF by using following code from knowledge base,

File file = new File(Environment.getExternalStorageDirectory(), "/test_image.jpg");
Bitmap bitmap = BitmapFactory.decodeFile(file.getAbsolutePath());
Page page = document.GetPage(0);
PageContent pageContent = new PageContent();
com.radaee.pdf.Matrix mat = new com.radaee.pdf.Matrix(200, 112.5f, 100, 300);
Document.DocImage docimage = document.NewImage(bitmap, true);
ResImage rimage = page.AddResImage(docimage);
page.AddContent(pageContent, false);

But I cannot move the image even cannot delete it. I wanted to move and delete image as other annotations movements.
Please help me.

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

Last edit: by

Image Moving 7 months 1 week ago #14308

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 900
  • Karma: 43
  • Thank you received: 17
PageContent is not editable, behind all annotations.
you can using Annotation instead, after annotation added to page, you can move/delete Bitmap annotation.

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

  • Page:
  • 1
Powered by Kunena Forum