Comments (12)
Strange... It could have to do with the font you're using. Can you try it with a built in font like Helvetica and see if that resolves the issue?
Would it be possible to send me the source code you're having issues with? I might be able to see the problem better.
Thanks for the bug report!
from pdfkit.
Im changing the font to see if that fixes it. Sent you the source through github. Thanks.
from pdfkit.
Did changing the font help? Also: make sure you're running the most recent version of PDFKit. Thanks!
from pdfkit.
Yes, by changing the font to the built-in helvetica the problem disappears. But I NEED to have Arial font for the pdf. Is it a problem with the ttf file I have?
And, yes I have the latest PDFKit installed.
from pdfkit.
OK, good info. I'll look into it more.
from pdfkit.
I can't seem to reproduce the issue. Does the following reduced test case work properly for you?
doc = new PDFDocument();
doc.font('arial.ttf');
doc.text("Tel (787) 760-3000");
doc.write('out.pdf');
If so, can you reduce your code the largest amount possible while still maintaining the issue and send me that? It is hard to debug a problem with such a large piece of code. Thanks!
from pdfkit.
I tried the code above and didn't produce the error. And I tried reducing the code but the problem did not appear unless I left exactly as it is. If I remove code, problem disappears, if I add more code problem stays the same. If you have any questions about the code I can answer them.
This really has me stumped. Thanks for the great support!
from pdfkit.
Huh, you've got me stumped as well. So if you remove any code the problem goes away not just a particular part?
from pdfkit.
Any PDFKit code before the first dash appears. And if I insert a dash
before the first dash appears I get the situation I described above.
Ricardo J. Vázquez Irizarry
On Sep 25, 2011, at 1:17 AM, Devon Govett
[email protected]
wrote:
Huh, you've got me stumped as well. So if you remove any code the problem goes away not just a particular part?
Reply to this email directly or view it on GitHub:
#37 (comment)
from pdfkit.
Kinda tired right now. I'll look at this again in the morning. Thanks again!
from pdfkit.
Tried rewriting my code. The problem appears once I have more than one page. Now it's repeating E, e.g. turns E into EE. I got the font files from a Windows machine, (which I replaced, just in case). Does this make any sense?
from pdfkit.
Any updates on this or did you find the problem?
from pdfkit.
Related Issues (20)
- rollup: output.interop no longer allows value `false`
- Y position of document not updated after adding image HOT 4
- Incorrect ordering of text when RTL (arabic) text mixed with LTR (english) HOT 1
- Prevent Text Overflow
- Support for other javascript runtimes (deno, cloudflare worker, bun)
- Please use lru to cache font layout to fix memory leak HOT 1
- `pageAdded` event not called for first page with `autoFirstPage: true`
- Pattern fills HOT 1
- pdfkit generates PDFs with technical errors and incorrect PDF version
- My Css code not work properly when i convert html to pdf by pdfkit HOT 1
- File Annotations without Icons
- Argument of type 'WriteStream' is not assignable to parameter of type 'WritableStream'.
- My Portfolio using HTML and CSS
- My Portfolio using HTML and CSS
- Enabling encryption prevents destination links from working. HOT 1
- Error creating PDF: window.PDFDocument is not a constructor in packaged app HOT 1
- Unable to convert an html into pdf HOT 1
- Pdf not been generated from custom html
- cannot add image to pdf : unknown image format. HOT 1
- Bug: File Cache Equality Check is Broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfkit.