Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

Document.NewImage always return true 4 years 6 months ago #14571

  • Righetti
  • Righetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
I use "document.OpenMem".

I follow the sample that U suggest me.

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

Document.NewImage always return true 4 years 6 months ago #14572

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
yes, that is the problem.
Document.OpenMem() is readonly.

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

Document.NewImage always return true 4 years 6 months ago #14573

  • Righetti
  • Righetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
I have a byte[], from db internal storage, how I do to open a PDF in writable mode?

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

Document.NewImage always return true 4 years 6 months ago #14574

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Now it's clear.
PDF loaded in byte[] aren't writable (after modification the size would change and it would rise to a memory exception).
You should use a stream or a temporary file: the second is much simpler.

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

Document.NewImage always return true 4 years 6 months ago #14575

  • Righetti
  • Righetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Ok thanks now I can see the image (not during the zooming).
I doesn't understand the Matrix parameters for positioning correctly my image in x, y point of PDF, can U help me?

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

Document.NewImage always return true 4 years 6 months ago #14576

  • Righetti
  • Righetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Ok I understand, the matrix parameters use. Thanks in advance

Only one more thing, I use PDFPageView for renderise pdf like your sample, I have to find the way to refresh the page after insert a image.

Now I can view the inserted image only after zooming action and during the zooming action the image was hidden.

How to refresh page and view image during zooming action?

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

Powered by Kunena Forum