Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace texts in original pdf #590

Closed
fabioselau077 opened this issue Sep 5, 2020 · 1 comment
Closed

replace texts in original pdf #590

fabioselau077 opened this issue Sep 5, 2020 · 1 comment

Comments

@fabioselau077
Copy link

fabioselau077 commented Sep 5, 2020

I need one question, for example: have one pdf for "model", i need replace some texts in original pdf.
Original: "I'm 10 years old".
After change: "I'm 9 years old".
In Vue It would be like one variable like {{y}}, how would it look to do that in the pdf using Vue?

@Hopding
Copy link
Owner

Hopding commented Sep 16, 2020

Hello @fabioselau077!

You can do this pretty easily if your original PDF has form fields. See the form filling example.

If your original PDF does not use form fields, then you won't be able to achieve this with pdf-lib right now. See #177 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants