Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas cropped when using rotate image #11

Closed
amine86 opened this issue May 29, 2017 · 4 comments
Closed

Canvas cropped when using rotate image #11

amine86 opened this issue May 29, 2017 · 4 comments

Comments

@amine86
Copy link

amine86 commented May 29, 2017

Hello,

Thank you very much for this project,
I want to know if we can have a selectable text in the PDF file ? ( as my test I got only a jpeg image under a PDF file).
Also I noticed a bug when testing, when I use a rotate image, it's cropped from the bottom and right and not positionned correctly, please see the attached file, (Preview from browser and the final result with pdf)

myfile-2.pdf

preview_from_html

Thank you very much,

@eKoopmans
Copy link
Owner

Hi @amine86, you're welcome! To answer your questions:

  1. No selectable text unfortunately, this package relies purely on turning the HTML into an image before going to PDF.

  2. I'll be happy to investigate your rotation issues. Would you please provide some example code? It would be easiest for me if you would please fork this jsFiddle, which has the dependencies already loaded, and add code there to show the rotation issue. Thanks!

@amine86
Copy link
Author

amine86 commented May 30, 2017

Hi @eKoopmans , thank you very much for your reply,

This is a fast example : https://jsfiddle.net/yynmre4k/

Also did you know please any plugin can convert canvas to svg ?

Thanks for your helps,

@amine86
Copy link
Author

amine86 commented Jun 2, 2017

Hi @eKoopmans

any news about this issue ?

@eKoopmans
Copy link
Owner

Yes, thanks for waiting @amine86. It's a problem directly in html2canvas, not html2pdf itself, so I'm going to move this conversation there to your issue at niklasvh/html2canvas#1138.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants