简体   繁体   中英

Problem with CSS transform and writing-mode properties while converting HTML to PDF dink to pdf

I'm trying to convert html to pdf, it works fine on browser but when I download pdf, css properties, transform and writing mode doesn't work. Here is css code example. I am using dinktopdf c# library.

.left-content h2 {
        color: white;
        text-transform: uppercase;
        bottom: 65px;
        left: -25px;
        position: absolute;
        writing-mode: vertical-rl;
        transform: rotate(-90deg);
        text-orientation: mixed;
      }

Try

-webkit-transform: rotate(90deg);

Instead of

transform: rotate(-90deg);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM