intbot / ng2-pdfjs-viewer

An angular component for PDFJS and ViewerJS (Supports all versions of angular)
Apache License 2.0
225 stars 113 forks source link

Is there any way to open a JPEG file on the PDF? #237

Closed donascimentomarcelo closed 1 month ago

donascimentomarcelo commented 10 months ago

I'm trying to use drag and drop an image on my PDF. I've found a way to import images via options, and it'd work perfectly if I could do the same thing dragging and dropping. pdf

As you can see, the QR Code number one, I did drag and drop, however, I cannot attach it to my PDF and get the coordinates. The QR Code number two I used the import option, where I imported the image to my PDF and I could get the coordinates from there.

Is there any way to drop my image on the PDF and get the coordinates of its position?

codehippie1 commented 1 month ago

@donascimentomarcelo I feel this would go beyond the scope of this library. You may ask this as a question on stack overflow to get help from the community.