Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to create pdf file from html

Question
Vivek Nayak · Apr 20, 2020

How to create pdf file from html

<html>
    <head>
        <title>LabCorp</title>
        <link rel="apple-touch-icon" sizes="60x60" href="app-assets/img/ico/apple-icon-60.png">
        <link rel="apple-touch-icon" sizes="76x76" href="app-assets/img/ico/apple-icon-76.png">
        <link rel="apple-touch-icon" sizes="120x120" href="app-assets/img/ico/apple-icon-120.png">
        <link rel="apple-touch-icon" sizes="152x152" href="app-assets/img/ico/apple-icon-152.png">
        <link rel="shortcut icon" type="image/x-icon" href="app-assets/img/ico/favicon.ico">
        <link rel="shortcut icon" type="image/png" href="app-assets/img/ico/favicon-32.png">
        <style>
            body, p, strong{font-size: 12px; font-family: Arial;}
            table tr td{font-size: 12px; font-family: Arial; padding: 2px 6px;}
            .borL{border-left:1px solid #333;}
            .borR{border-right:1px solid #333;}
            .borT{border-top:1px solid #333;}
            .borB{border-bottom:1px solid #333;}
            .border{border:1px solid #333;}
            
            @font-face {
                font-family: 'IDAutomationHC39M';
                src: url('d:/file/fonts/IDAutomationHC39M_0.ttf');
            }
            
            .IDAutomationCover {
                background: #f5f7fa;
                /*margin-top: 14px;
                padding-top: 45px;
                padding-left: 10px;*/
                padding-right: 10px;
            }
            .IDAutomationHC39M {
                font-family: IDAutomationHC39M;
                color: #525252;
                font-size: 20px;
                height: 80px;
                line-height: 80px;
                white-space: nowrap;
                margin-bottom: 0;
                padding-left: 10px;
                padding-right: 10px;
            }

            svg {
                border: 1px solid #000;
                padding-bottom: 4px;
            }
        </style>
    </head>
    <body>
    
    </body>
</html>

#InterSystems IRIS

Source URL:https://community.intersystems.com/post/how-create-pdf-file-html