Build a feature to get feedback on annotations drawn on pdf using adobe embed - reactjs

I have some predefined annotations that I'm drawing on the PDF using the addAnnotationsInPDF function.
Users are not allowed to make their own annotations. Now I want to build a feature to get feedback on annotations drawn. I'm using Adobe embed API and showing PDF in Sized Container mode.
Please help me with what thing I can use to get this feedback.

This is not something that Embed itself can do, but can be built with front-end code. In order to help, you will need to narrow down your question quite a bit.

Related

can i scale a react component like an SVG

i have a website where i had a pdf preview as a react component, the pdf should be in real dimension, all works smooth until I start working on making the website responsive, I didn't know wt to do exactly with the pdf preview, I have an idea to scale the whole component up and down like we do with an SVG but idk if that's possible to do
I think you better use a library to preview the PDF.Since you want to make it responsive without affecting the preview.You may make use of libraries like react-pdf. This library may generate PDF files from a URL, a local file within the project, or a base64 encoded version.
And i found this article useful.
Hope this may help you!
And as you have mentioned you have some troubles installing react-pdf it's not very compatible with webpack5that is mostly due to Buffer dependency.
Refer to thsi :react-pdf issues
Without knowing the exact error, it's so difficult to help, so be more specific when you are asking questions.

Designing window frames (of real houses) with React

In my new project with React, I need to implement an environment for designing doors and windows so that the user can design frames through the browser (like the two figures below) and then save it on the server-side. Then I have to fetch and display it in the mobile application that is implemented with React Native. I searched for it but couldn't find anything special that would work. I even found "konvajs" that has done some work in this area but it doesn't work for me and I think I need to develop this feature myself. If you know of any tools or technologies for this, please let me know. If not, what do you think I can do about it?
picture-1
picture-2

How to extract metadata from an image

I'm a newbie to codenameone. I'm trying to develop some image-processing app. I need to know if the image has geotagging information and eventually extract those. Is there a way to do that in CodenameOne?
I'm aware of the methods based on plain javax.imageio packages, but I know that those are not available in codenameone.
Thanks for any hints!
We don't have such an API as it's pretty different between Android/iOS. You can write something like this in pure Java and parse the image header which should be relatively simple.
Or you can build a cn1lib on top of native code e.g. see this library, It does that for video which is arguably harder.

How to add a contract editor + export in pdf feature in my react app?

I am writing to you today because I need your developer advice.
A friend and I have been developing for several months a project management tool (react + firebase).
The app is well advanced, and we would like to add a contract editing tool. The goal is for the user to have access to an editable template (a window with a text editor) of a contract. Once amended, the contract must be exportable in pdf format.
We are a little confused about how to approach the problem. Following our research we found the frameworks draft.js and pdf2json, but the way to proceed remains unclear for us.
Have any of you ever crafted a similar feature in an application and could you give us some hints?
Any help is welcome, thank you in advance!

Can i use Lottie animation in Codenameone apps

I am wanting to render a short piece of animation on the splash screen of my CN1 app but am struggling.
The Lottiefiles website contains a lot of good animation content, but the closest example i can find to using it is within XCode. I have the downloaded JSON file, of the animation, but am wanting to know if anyone has figured a way of incorporating into a CN1 Java app?
I can see that developers have used in Java, but CN1 wouldn't allow the LottieAnimationView component on it's layout manager i would guess.
https://steemit.com/utopian-io/#fahrulhidayat/beautiful-animation-for-android-application-using-lottie-library
Any pointers appreciated. Thanks
The "right way" would probably be to wrap the native implementations for the various OS's in a cn1lib so you can use lottie in a cross platform way. There's a long tutorial about wrapping native code in the developer guide and Steve did a 3 part video series on the subject a few years back: https://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-3.html
It's mostly mechanical so it shouldn't be too hard. If you want to take a shortcut you can probably use the web version of the API in a BrowserComponent and call it a day.

Resources