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

TOPIC:

Custom UI 5 years 11 months ago #13813

  • jShaf
  • jShaf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Dario from Support said that we can write our own UI and use your low-level API and PDF view classes.

For example, we want to bring up separate screen in landscape mode and use free-hand annotation to write a signature. When clicking done, the app would then place a new signature onto the PDF and the user would be able to move it around and resize it as needed.

Do you have a sample that will allow our developers to see what or how low-level API and PDF view classes are used?

Thank you.

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

Custom UI 5 years 11 months ago #13814

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Sure, you can download our demo project from www.radaeepdf.com/download/file/111-radaeepdf-3-15-1 and run the RDPDFReader module.
You can use PDFLayoutView as a normal Android view, i.e. add it into your layout's xml.
You can check PDFLayoutView for the API provided, and the Knowledge Base articles

Note, the demo project is already activated with a demo premium license, if you want to use your own project make sue to give it com.radaee.reader as package name to be able to activate the demo license, for mre details check Test different license types on Android before buying the license

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

Custom UI 5 years 11 months ago #13819

  • AlexandrM
  • AlexandrM's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hello.

We have already tried to customize layout, and it is ok for us thank you.

Now we have next question.
Can you please assist us with them?

We want the app to launch separate UI in landscape mode (screenshot below) when user clicks to put in a signature. When clicking Done, the app would then place Signature onto center of the PDF and the user can then move it around and resize it as needed.
Screenshot: prntscr.com/jgklth

Can you please tell us - is it possible to update workflow and achieve our requirements?

Thank you,
Alexandr

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

Custom UI 5 years 11 months ago #13821

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi Alexandr,
It's possible. You'll need to implement this part taking as a guide the support of graphical (not-graphometric and not-certified) signature for sign form fields in the demo project.
Note: the added signature might not be rendered using other readers like (Acrobat desktop version) as it's handled via setIcon to disable this feature modify Global.sEnableGraphicalSignature.

The signature is captured using com.radaee.util.CaptureSignature class.
You can handle and edit this class upon your needs. You can add the generated bitmap as an annotation and resize/move the created signature using Annotation.SetRect(float, float, float, float) method.
For more info check this : www.radaeepdf.com/documentation/javadocs...t-float-float-float-

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

Custom UI 5 years 11 months ago #13841

  • AlexandrM
  • AlexandrM's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hello.

Thank you for your previous replies - they were very helpful for us.
And now we have few more questions about our next steps

1. We have added sign feature to the application. So, users able in the separate screen add their sign.
Right now next steps are:
- Users create sign image.
- tap on the screen and they able to add UI element (Bitmap) to the screen with image in it.
- it is possible to resize this UI element.
- but once we are going to move this element on the pdf document it is converted to the PDF element with frame (AddAnnotBitmap).
- user able to move it anywhere inside document.
- but now we unable to resize it, as it is converted to the pdf element, and there is no resize controls over it.
So, our question is how to add controls for resizing pdf objects?

2. And we are wondering - is it possible to add some UI elements for resizing text on the pdf?
We need to create something like this:
prntscr.com/jl51b2

Thank you,
Alexandr

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

Custom UI 5 years 11 months ago #13845

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Dear Alexandr,
1. you can add controls to resize pdf object in PDFLayoutView.onDrawAnnot(Canvas canvas) , here we add the grey rect border to the annotations, I suggest you to add your UI elements to resize pdf object here

2. you can add these buttons using Android API and you can resize text using the following Annotation's method
/**
		 * set text size of edit-box and edit field.<br/>
		 * this method require premium license
		 * @param fsize font size to set.
		 * @return true or false.
		 */
		final public boolean SetEditTextSize(float fsize)

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

  • Page:
  • 1
Powered by Kunena Forum