mrafiqk/html-pdf-node

Not appliying css and source files

Opened this issue · 1 comments

Hi! I'm building a node module and pdf is not applying <style> content. The html file begins this way:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Static Template</title>
    <style media="screen">
      @import url("https://fonts.cdnfonts.com/css/hind");
      @import url("http://fonts.cdnfonts.com/css/circular-std");

      @media print {
        html,
        body,
        .main,
        .tabs,
        .tabbed-content {
          float: none;
        }

        .title {
          font-size: 30px;
        }

It's also not rendering images sources, they're under
src/templates or dist/templates after compilation

Any clue?

@valenciaHQ try to use downgrade version: 1.0.6