Quote from Juancasev on December 28, 2025, 12:25 amHola,
He estado echando un vistazo al nuevo plugin Neopdf2. Creo que me podría ser muy útil para mis proyectos. El caso es que no acabo de entender su funcionamiento.
En cuanto al renderizado de un nuevo pdf y la adición de textos me funciona perfectamente.
Con el objetivo de intentar hacer plantillas para usar las posteriormente intenté usar neopdf2savetobase64.
El navegador devuelve referenceerror: neoPdfSaveToBase64 is not defined. ( El copilot de Edge dice que la función no está correctamente definida en el main.js porque tiene una "b" al final del nombre. ( De todas formas he intentado cambiarlo manualmente y tampoco me funciona devuelve un JSON vacío)
He añadido una imagen genérica a un objeto Imagen, y tampoco consigo que salga ni dándole al botón ni integrándola en la subrutina inicial. ( Lo he probado en el servidor).
Con neopdf2imagebase64 me pasa lo mismo.
Recibo del navegador una advertencia de que un elemento del formulario no tiene id ni nombre y quizá interfiera.
Por último me gustaría saber el motivo de que si el plugin se usa en Edge, presenta la posibilidad de añadir texto dinámico, cosa que no parece salir en Chrome. (Al menos no lo veo)
Adjunto una pequeña prueba con una imagen genérica para aislar el problema.
Gracias.
--
Hi,
I've been looking into the new Neopdf2 plugin. I think it could be very useful for my projects. The thing is, I don't quite understand how it works.
As for rendering a new PDF and adding text, it works perfectly.
With the aim of creating templates to use later, I tried using neopdf2savetobase64.
The browser returns referenceerror: neoPdfSaveToBase64 is not defined. (Edge's copilot says the function isn't properly defined in main.js because it has a "b" at the end of the name. (I've tried changing it manually anyway, but it still doesn't work; it returns empty JSON.)
I've added a generic image to an Image object, but it still doesn't appear, neither by clicking the button nor by integrating it into the initial subroutine. (I've tested it on the server.)
I'm having the same problem with neopdf2imagebase64.
I'm getting a warning from the browser that a form element doesn't have an ID or name.
Finally, I'd like to know why, if the PDF is rendered in Edge, it allows adding dynamic text, which doesn't seem to work in Chrome.
I've attached a small test with a generic image to isolate the problem.
Thanks.
Hola,
He estado echando un vistazo al nuevo plugin Neopdf2. Creo que me podría ser muy útil para mis proyectos. El caso es que no acabo de entender su funcionamiento.
En cuanto al renderizado de un nuevo pdf y la adición de textos me funciona perfectamente.
Con el objetivo de intentar hacer plantillas para usar las posteriormente intenté usar neopdf2savetobase64.
El navegador devuelve referenceerror: neoPdfSaveToBase64 is not defined. ( El copilot de Edge dice que la función no está correctamente definida en el main.js porque tiene una "b" al final del nombre. ( De todas formas he intentado cambiarlo manualmente y tampoco me funciona devuelve un JSON vacío)
He añadido una imagen genérica a un objeto Imagen, y tampoco consigo que salga ni dándole al botón ni integrándola en la subrutina inicial. ( Lo he probado en el servidor).
Con neopdf2imagebase64 me pasa lo mismo.
Recibo del navegador una advertencia de que un elemento del formulario no tiene id ni nombre y quizá interfiera.
Por último me gustaría saber el motivo de que si el plugin se usa en Edge, presenta la posibilidad de añadir texto dinámico, cosa que no parece salir en Chrome. (Al menos no lo veo)
Adjunto una pequeña prueba con una imagen genérica para aislar el problema.
Gracias.
--
Hi,
I've been looking into the new Neopdf2 plugin. I think it could be very useful for my projects. The thing is, I don't quite understand how it works.
As for rendering a new PDF and adding text, it works perfectly.
With the aim of creating templates to use later, I tried using neopdf2savetobase64.
The browser returns referenceerror: neoPdfSaveToBase64 is not defined. (Edge's copilot says the function isn't properly defined in main.js because it has a "b" at the end of the name. (I've tried changing it manually anyway, but it still doesn't work; it returns empty JSON.)
I've added a generic image to an Image object, but it still doesn't appear, neither by clicking the button nor by integrating it into the initial subroutine. (I've tested it on the server.)
I'm having the same problem with neopdf2imagebase64.
I'm getting a warning from the browser that a form element doesn't have an ID or name.
Finally, I'd like to know why, if the PDF is rendered in Edge, it allows adding dynamic text, which doesn't seem to work in Chrome.
I've attached a small test with a generic image to isolate the problem.
Thanks.
Uploaded files:

Quote from luishp on December 28, 2025, 6:11 pm@juancasev he hecho algunos ajustes en el plugin (adjunto nueva versión).
Fíjate que las imágenes tardan un poco en renderizar, por lo que debes esperar un poco antes de generar el PDF.neoPdf2ImageBase64 "pdf" "[base64encodedImage]" "JPEG" 10 10 80 80 Wait 500 neoPdf2Download "pdf" "prueba" EndWaitPruébalo cuando puedas y me dices.
Gracias!!
@juancasev he hecho algunos ajustes en el plugin (adjunto nueva versión).
Fíjate que las imágenes tardan un poco en renderizar, por lo que debes esperar un poco antes de generar el PDF.
neoPdf2ImageBase64 "pdf" "[base64encodedImage]" "JPEG" 10 10 80 80 Wait 500 neoPdf2Download "pdf" "prueba" EndWait
Pruébalo cuando puedas y me dices.
Gracias!!