Giter Club home page Giter Club logo

valerioemanuele / drag-and-drop-placeholders-into-pdf Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 16.0 383 KB

In this example I'll show you how to drag and drop placeholders into PDF documents and convert the HTML placeholders coordinates in PDF coordinates (itext PDF).

Home Page: https://valerioemanuele.blog/drag-and-drop-di-placeholder-su-pdf-in-formato-a4-da-webapp-2-201902

License: Apache License 2.0

CSS 0.38% HTML 97.95% JavaScript 1.66%

drag-and-drop-placeholders-into-pdf's People

Contributors

valerioemanuele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

drag-and-drop-placeholders-into-pdf's Issues

How to save the modify document

Greetings,
I have checked the demo, but as far as I understand PDFJS cannot modify pdf directly. So my question is how can I save the updated pdf where after placing the placeholders into the canvas?
Thanks

Placeholders not updating.

Hello @ValerioEmanuele ,
I have checked you codepen demo and here is the result coordinates of a same placeholder put at 4 different locations:
top left
posizioneX:19.873524451939318
posizioneY:813.95

top right
posizioneX:19.873524451939318
posizioneY:813.95

bottom left
posizioneX:19.873524451939318
posizioneY:813.95

bottom right
posizioneX:19.873524451939318
posizioneY:813.95

Could you please have a look into this.
Values are updating only on page refresh.

Get dimensions in MM instead of use with itext

great code and great solution, however

I am wondering if it is possible to set the output x and t values to for example MM or PX instead of the coordinates to use in itext.

i am struggling with this now for to many days so I was wondering if someone knows the solution to this.

thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.