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

TOPIC:

Add text, Android 6 years 11 months ago #12321

  • oscar
  • oscar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Good afternoon I have a question, is possible to add text on the pdf in the same way as an image or a line, I would like to leave blanks to be filled with text

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

Add text, Android 6 years 11 months ago #12326

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
It is not clear what you mean, but you can add text and place it where you want using PageContent.TextMove, PageContent.TextNextLine
sform.TextBegin();
sform.TextSetFont(res_font, 20);
sform.TextMove(20, 50);
sform.DrawText("this is form1, parent of form1");
sform.TextEnd();
for an example, check PDFTestAct.gen_form1

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

Last edit: by nermeen.

Add text, Android 6 years 11 months ago #12332

  • oscar
  • oscar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hello I mean the following:

I would like to add text over a pdf, I have a book in pdf which contains some questions that I want to answer through the application

Step 1: select the writing tool
Step 2: write the answer
Step 3: move it text if necessary, rearrange or remove it

Is it possible to do this?
I do not find something similar in demos
Attachments:

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

Add text, Android 6 years 11 months ago #12335

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
This can be achieved using Editbox annotation, that can be added using Page.AddAnnotEditbox
Repositioned using Annotation.SetRect
Removed using Annotation.RemoveFromPage
For more details, you can check How to add an Edit Text annotation (Android)

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

Add text, Android 6 years 11 months ago #12337

  • oscar
  • oscar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hello how can I run the PDFReader activity , appears as deprecated
Attachments:

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

Add text, Android 6 years 11 months ago #12339

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Yes, PDFReader is deprecated. We recommend to use RDPDFReader instead (PDFLayout instead of PDFReader) as it's better performance wise.
You need to run the RDPDFReader module (com.radaee.reader.PDFViewAct)

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

  • Page:
  • 1
Powered by Kunena Forum