React Native: Placing image into existing PDF at specific X,Y

636 Views Asked by At

I am currently working on react-native app, where I would like to place image into existing pdf at specific coorinates.

Firstly, I create PDF from HTML template with the following library, and at this point, I also create a space (let's say some X mark - I dont know the exact coordinates, it depends on PDF length) for image which will be potentialy added after a while:

react-native-html-to-pdf

For PDF manipulation I am using this library (you have to define x, y coordinate where to place an image):

react-native-pdf-lib

So I am asking, if is there a way to somehow determine where is this place (mark X) in the existing PDF.

0

There are 0 best solutions below