- Posts: 1
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Custom UI
IP: 108.45.24.133
7 years 10 months ago #13813
by jShaf
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.
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.
IP: 93.33.157.93
7 years 10 months ago #13814
by nermeen
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
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
IP: 217.12.216.18
7 years 10 months ago #13819
by AlexandrM
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
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
IP: 37.183.44.177
7 years 10 months ago #13821
by Davide
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-
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-
IP: 217.12.216.18
7 years 9 months ago #13841
by AlexandrM
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
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
IP: 37.183.44.177
7 years 9 months ago #13845
by Davide
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
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
Code:
/**
* 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)
Time to create page: 0.452 seconds