html to pdf – Itext htmltopdf not rendering all pages

<!DOCTYPE html> <html> <head> <style type=”text/css”> @font-face { font-family: Noto; src: url(“fonts/noto/NotoSans-Regular.ttf”); } .testDesign { font-family: Noto; font-size: 12px; display: flex; flex-direction: column; flex: 1 0 auto; color: #000000; } .testDesign :where(h1, h2, h3, h4, h5, h6) { font-family: Noto; margin-bottom: 0; } .testDesign h1, .testDesign h2, .testDesign h3, .testDesign h4, .testDesign h5, .testDesign h6, … Read more

pdf generation – React Native HTMLToPDF printing awkward character

So I have this HTML template to transform to pdf using the RNHTMLToPDF package: export default function getPdfTemplate(requestData, items, switchValues) { return ` <div style=”display: flex; flex-direction: column; width: 100%;”> <div id=”pdf-header” style=”display: flex; flex-direction: row; width: 100%;”> <div style=”display: flex; flex-direction: column; width: 50%;”> <div style=”font-size: 10px”> <b>Nome do cliente: </b> ${requestData.nomeCliente} </div> <div … Read more