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

Get position of text in a pdf document #386

Open
oluSammy opened this issue May 19, 2024 · 0 comments
Open

Get position of text in a pdf document #386

oluSammy opened this issue May 19, 2024 · 0 comments

Comments

@oluSammy
Copy link

oluSammy commented May 19, 2024

Is there a way to get the position of a text in a pdf?

 const pdfDoc = new Recipe('./demo_123.pdf', "output.pdf");
pdfDoc
    .editPage(1)
    .text("Add some texts to an existing pdf file", 150, 300)

can be used to write text into position (150, 300)

is there a method that returns the position of a text? something like

pdfDoc.getPosition('Add some texts to an existing pdf file')

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

1 participant