We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to add a rectangle to a page
page.drawRectangle({ x: xBox, y: yBox, width: boxWidth, height: boxHeight, opacity: marker_opacity, color: color, });
WARN Trying to parse invalid object: {\"line\":78,\"column\":6,\"offset\":1749}). WARN Invalid object ref: 8 0 R. WARN pdf_tool/node_modules/.pnpm/[email protected]/node_modules/pdf-lib/cjs/core/structures/PDFPageLeaf.js:75. WARN Contents.push(contentStreamRef);. WARN ^. WARN TypeError: Contents.push is not a function. WARN at PDFPageLeaf.addContentStream (pdf_tool/node_modules/.pnpm/[email protected]/node_modules/pdf-lib/cjs/core/structures/PDFPageLeaf.js:75:18). WARN at PDFPage.getContentStream (pdf_tool/node_modules/.pnpm/[email protected]/node_modules/pdf-lib/cjs/api/PDFPage.js:1365:19). WARN at PDFPage.drawRectangle (pdf_tool/node_modules/.pnpm/[email protected]/node_modules/pdf-lib/cjs/api/PDFPage.js:1204:34). WARN at drawPosition (pdf_tool/index.js:96:8).
That the tool is able to add a rectangle
Unfortunately I am not allowed to share the PDF with you.
1.17.1
Node
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What were you trying to do?
I tried to add a rectangle to a page
How did you attempt to do it?
What actually happened?
What did you expect to happen?
That the tool is able to add a rectangle
How can we reproduce the issue?
Unfortunately I am not allowed to share the PDF with you.
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response
The text was updated successfully, but these errors were encountered: