angularjs-pdf icon indicating copy to clipboard operation
angularjs-pdf copied to clipboard

Canvas Id

Open Paulsky opened this issue 8 years ago • 3 comments

Hello,

I want to position the canvas element myself. I read in the Readme that I should use '<canvas id="x"></canvas>' in combination with <ng-pdf canvasid="x"></ng-pdf>.

But that’s not working. When I’m looking in the source code, I can see how the canvas is created: 'var canvas = $document[0].createElement('canvas');'.

But I can’t find anything in the code that checks for canvasid or if there is an existing canvas. Could you please help me? Or maybe update the readme?

Paulsky avatar Sep 11 '17 09:09 Paulsky

Same problem here

mateoSerna avatar Sep 12 '17 14:09 mateoSerna

I too have this issue. Any solution for this soon? I'd like not to modify the source.

Should/could I modify the source and commit it here?

jegjessing avatar Dec 12 '17 10:12 jegjessing

Yes @jegjessing , you can modify the source, PR's are welcome!

dennybiasiolli avatar Dec 12 '17 11:12 dennybiasiolli