question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to 1.4 causes problems with doc.text() ?

See original GitHub issue

Previously in 1.3.5 I was able to draw text on the right side of the pdf with the following line:

doc.text(doc.internal.pageSize.width - 10, 30, 'Align Right?', null, null, 'right');

But this stopped working in 1.4, which you can see here: http://jsbin.com/mevemoyula/edit?html,js,output

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Uzlopakcommented, Jun 1, 2018

There was not a way around that.

1reaction
westwickcommented, May 31, 2018

Looks like the problem is with doc.internal.pageSize - width property has been replaced with getWidth() getter? Would be really nice to include things like that in release notes 😄

I would personally consider this a breaking change so if you are following semver it should be a major 2.0 release instead of minor 1.x. Great library though thanks for all the hard work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade To 12.2.1.4 Causes Groovy Error "Script Text To ...
My Oracle Support Banner. Upgrade To 12.2.1.4 Causes Groovy Error "Script Text To Compile Cannot Be Null!" (Doc ID 2707258.1) · Applies to:....
Read more >
Upgrading to v 1.4.0+ causes some producers to be unable to ...
We determined what is causing the value serialization error for some producers and not others. Those schemas using a logical type are being ......
Read more >
Bug #4932: Error in reports after upgrade from H2 1.4.197 to ...
The [*] in the error message indicates the word on which the H2 statement parser had a problem, it is not part of...
Read more >
jsPDF - Documentation - GitHub Pages
Default export is a4 paper, portrait, using milimeters for units var doc = new jsPDF() doc.text('Hello world!', 10, 10) doc.save('a4.pdf').
Read more >
1.4.1. /db/doc — Apache CouchDB® 3.2 Documentation
local_seq (boolean) – Includes last update sequence for the document. ... into the target database even if that leads to the creation of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found