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

html to png, css Rotation not used #220

Closed
mapleLeat opened this issue May 11, 2018 · 3 comments
Closed

html to png, css Rotation not used #220

mapleLeat opened this issue May 11, 2018 · 3 comments

Comments

@mapleLeat
Copy link

<html>
 <head>
  <style>@page {size: 520px 820px;margin: 0px;padding: 0px;}body {margin: 0;}</style>
 </head>
 <body>
    <div style="left:0px;top:0px;width:50px;transform: rotate(50deg);">
      asdasdasd
    </div>
 </body>
</html>

PDF TO PNG
transform: rotate(50deg) not use

@mapleLeat
Copy link
Author

mapleLeat commented May 11, 2018

@rototor Excuse me, does the conversion of images have not added rotation support?

@rototor
Copy link
Contributor

rototor commented May 12, 2018

@mapleLeat Sorry, i don't understand what you mean. Rotation seems to work fine for me for this test case, both for PDF and PNG output. Of course, the PNG output is truncated, as the div is only as high as the div needs to be to draw the untransformed text. CSS transform is visual only and does not affect the layout (as per spec). You may just need to add more height to your div to not get it truncated when writing as a PNG.

simplerotate

simplerotate.pdf

What version of OpenHTMLToPDF do you use?

@mapleLeat
Copy link
Author

mapleLeat commented May 14, 2018

@rototor hello
thanks,Now that I use the RC13 version, there is no problem

rototor added a commit to rototor/openhtmltopdf that referenced this issue May 22, 2018
rototor added a commit to rototor/openhtmltopdf that referenced this issue Jun 29, 2018
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