Git Product home page Git Product logo

Comments (12)

devongovett avatar devongovett commented on August 17, 2024

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.

rix501 avatar rix501 commented on August 17, 2024

Im changing the font to see if that fixes it. Sent you the source through github. Thanks.

from pdfkit.

devongovett avatar devongovett commented on August 17, 2024

Did changing the font help? Also: make sure you're running the most recent version of PDFKit. Thanks!

from pdfkit.

rix501 avatar rix501 commented on August 17, 2024

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.

devongovett avatar devongovett commented on August 17, 2024

OK, good info. I'll look into it more.

from pdfkit.

devongovett avatar devongovett commented on August 17, 2024

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.

rix501 avatar rix501 commented on August 17, 2024

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.

devongovett avatar devongovett commented on August 17, 2024

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.

rix501 avatar rix501 commented on August 17, 2024

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.

devongovett avatar devongovett commented on August 17, 2024

Kinda tired right now. I'll look at this again in the morning. Thanks again!

from pdfkit.

rix501 avatar rix501 commented on August 17, 2024

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.

devongovett avatar devongovett commented on August 17, 2024

Any updates on this or did you find the problem?

from pdfkit.

Related Issues (20)

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.