parallax/jsPDF

Links breaks when use addPage with another size

オープン

#2,801 opened on 2020/07/06

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (4,596 件のフォーク)batch import
Bugdifficulty:beginnerhacktoberfest

Repository metrics

Stars
 (28,280 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Hi!

I'm facing an issue, links breaks when .addPage() with another format than the initial size, apparently the position of the link became incorrect.

Reproduce:

  • Start new doc with an specific size
  • Put some link anywhere in the first page
  • addPage() with an different size
  • The link inserted in the first page doesn't respect anymore the position passed.

Notice that this occurs with textWithLink and also link(). If the addPage() has the same size of initial format links work's just fine. I made an fiddle to help:

Works: https://jsfiddle.net/MarceloZapatta/don4hqtj/

Breaks: https://jsfiddle.net/fL403sja/2/

コントリビューターガイド