Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
104 views

I use my custom Persian font in jsPDF, but characters for this font show me wrong. I hear The IranNastaliq font uses the 'cswh' feature for such ligatures. 'cswh' is default-off according to the ...
Chris Sermanni's user avatar
1 vote
1 answer
53 views

I am building a client-side application ("SpeakFlow") that takes large PDF files, processes the text in chunks using an LLM to generate Markdown, and then compiles those chunks back into a ...
Chirag's user avatar
  • 103
1 vote
0 answers
135 views

I’m trying to replace the old html2canvas with html2canvas-pro because the older version crashes when encountering modern CSS color formats like oklch() or display-p3(). My web page previously worked ...
Hiếu Bùi Quang's user avatar
0 votes
1 answer
65 views

I am using transformation matrices with jspdf to change the origin and scaling of my drawings. setCurrentTransformationMatrix has no official documentation from what I found (well, except if "...
Alphasaft's user avatar
  • 322
0 votes
0 answers
65 views

I'm using jspdf to render text that I get from a text editor (which means the text has HTML tags and styles and classes), i'm using the method .html when the note is basic text and it's working fine, ...
Ons belkhouja's user avatar
2 votes
1 answer
93 views

I am trying to add an HTMLElement to a PDF after converting it to an image using "toPng" from "html-to-image". The HTMLElement exists inside another, that plays the role of the ...
El baz Houcine's user avatar
2 votes
2 answers
163 views

Ive been writing a tampermonkey userscript to convert an ebook to a pdf in google play books. However, whenever i try to use the jsPDF object, it throws an error. This is my the part of the code that ...
Yash Agrawal's user avatar
0 votes
0 answers
58 views

I am trying to plot an area chart SVG into a pdf, but for some reason the line on top of the area insists in being grey. I tried giving the colour in hexadecimal, also giving a line as well as area ...
Mitch Bukaner's user avatar
0 votes
0 answers
201 views

Good day, I wanted to ask a question related to using the html method of jsPDF to generate a PDF based on the html contents of a page. I am using Vue 3 for my frontend and Laravel 10 for my backend. ...
Amanda's user avatar
  • 1
1 vote
1 answer
109 views

To use the Tahoma font in my PDF I loaded the TTF file from my Windows/Fonts folder into a converter which holds a Base64 string as input to the jsPDF plugin. Now the results show different from ...
Z0q's user avatar
  • 1,975
1 vote
1 answer
193 views

I have code for converting a div to pdf and I want to add the ability to have the div hidden by setting style="display:none". <div id="contentsheet2" class="contentgrid&...
Barry Andrews's user avatar
0 votes
2 answers
46 views

I have only very basic HTML knowledge and would appreciate input from those with better HTML knowledge. I have a simple HTML file for entering a content list which is editable online and then ...
Barry Andrews's user avatar
0 votes
0 answers
61 views

I am trying to download the pdf with kannada fonts. I downloaded the NotoSansKannada-Regular.ttf file and converted the file to .js using tool https://rawgit.com/MrRio/jsPDF/master/fontconverter/...
user2531602's user avatar
1 vote
1 answer
74 views

I am using jsPDF in a Vue 2 project to generate a PDF report. The issue I’m facing is that my calculated numbers are not appearing in the generated PDF, even though they print correctly in the console....
Shanta Kumar das's user avatar
0 votes
0 answers
91 views

Context Hello, I'll start saying that I'm sorry if my code sucks, I am a backend dev, not a frontend, I know a little of JS. Btw I am trying to do this Chrome extension with manifest V3 that basically ...
FrankOfTheScience's user avatar
0 votes
1 answer
141 views

I am using jsPDF with jspdf-autotable to generate a Right-to-Left (RTL) PDF report in Arabic. Everything works perfectly, but the headers appear as garbled/corrupt text instead of proper Arabic ...
Ak98's user avatar
  • 43
0 votes
0 answers
66 views

Is it possible to get access to row data on specific page? I tried willDrawPage or didDrawPage - but it still shows like all data, all rows in one object I need to create structure like: { page1: ...
NewBieJavaPro's user avatar
0 votes
0 answers
159 views

I'm encountering two issues when using jsPDF in a web application that I transformed into an Android app using WebIntoApp. Here's the relevant code snippet: <html lang="it"> <head&...
user9846973's user avatar
0 votes
1 answer
135 views

I'm using JsPDF to generate some documents. I need a piece of text to be rotated 180. It has a max width so it's multiple lines. It also needs to be center aligned. Currently i'm doing this: doc.text(...
CeVR's user avatar
  • 1
0 votes
0 answers
146 views

I'm using html2canvas to generate a PDF from a React resume template. While the icons are perfectly aligned in the HTML preview, they become misaligned when converted to PDF. Here's my setup: I'm ...
Nifaz's user avatar
  • 23
0 votes
1 answer
172 views

I'm using jsPdf to generate a PDF from an HTML output in react. The HTML contains base64 images taken by mobile devices. In the HTML they are displayed correctly, but in the PDF they are rotated in ...
NinaNa's user avatar
  • 1,657
0 votes
0 answers
76 views

In this code, I need to adjust the code such that the image is directly below the text. When I run this code, Here is my current code: var pdf = new jsPDF('p', 'pt', 'letter'); let w = 40; let h = 100;...
ShadowKnight700's user avatar
0 votes
0 answers
78 views

I use the Montserrat Font for creating PDF's with jsPDF 2.5.2 and I need letter spacing for numbers. For my website it works when I add: font-feature-settings: "tnum" @font-face { font-...
RainerRoss's user avatar
0 votes
0 answers
118 views

I want to display images within a PDF using jspdf, but I am facing an issue with how the images are being rendered. Issue: The image is covering the entire div in the PDF. Desired Result: The image ...
Negin's user avatar
  • 331
0 votes
1 answer
99 views

In Jspdf, i need to print half an A4 sheet in portrait orientation. This is my code: let doc = new jsPDF({ orientation: 'portrait', unit: 'mm', format: [210, 148.5], }); This causes the ...
Alan's user avatar
  • 127
2 votes
2 answers
2k views

I am trying to convert my HTML content to a PDF using the jsPDF library. The HTML file contains custom fonts that are defined using @font-face with Base64-encoded font URLs. However, when I generate ...
Krunal Lathia's user avatar
1 vote
0 answers
90 views

I am working on a React project where I use the react-map-gl and @deck.gl/react libraries to display a map along with DeckGL layers on the screen. I have added PDF printing functionality to the ...
Hrutik's user avatar
  • 31
2 votes
0 answers
121 views

I have created a camera app where I send the pictures to a div and ultimately printing that div. const handlePrint = async () => { const grid = document.getElementById("image-grid"); ...
Anshu Patel's user avatar
0 votes
0 answers
302 views

I am using jsPDF for angular and created custom config file and added this code, module.exports = { // ... externals: { canvg: "canvg", html2canvas: "html2canvas&...
Onkar Meherwade's user avatar
1 vote
1 answer
111 views

<div id="content" #content> <div class="skill-view-head"> <div> <label for="emp-id">Emp ID: </label> ...
Alvaro's user avatar
  • 150
1 vote
0 answers
59 views

I am using jsPDF in a project and mostly have things working as expected. If, however, I decide to change the default character spacing to any non-zero value, centering gets thrown off by the ...
denkom's user avatar
  • 61
0 votes
0 answers
131 views

Hi I am having dynamic html content to print this on jspdf I am using its HTML Function so it wont break on the next page await pdf.html(tempContainer, { callback: async(pdf) => { }, ...
Sushant Katoch's user avatar
0 votes
0 answers
166 views

**For dynamic data I am using creating HTML ** <div class="prv-blk" id="content-to-print"> <p style="page-break-inside: avoid;"><b&...
Sushant Katoch's user avatar
0 votes
2 answers
223 views

I am trying to create/download pdf with jspdf using html2canvas. I have certain div made circle around and colored with some value inside. When I download pdf in certain cases this is cut. and is in 2 ...
Presha's user avatar
  • 104
0 votes
1 answer
166 views

I am using html2pdf.js for downloading pdf. I have prepared an html of a form which I want to download as pdf. It works fine with chrome but with firefox I unable to understand why those text ...
Santosh's user avatar
  • 3,897
1 vote
0 answers
77 views

I am working on my website project in Laravel, and I want to use the new version of jsPDF which is 2.5.2. Here is the js file I have: document.getElementById('exportPDF').addEventListener('click', ...
Zen Ryuu's user avatar
0 votes
1 answer
124 views

I have a few images, I am arranging them in a grid and trying to print, which works fine. Now, I added a tailwind CSS class 'grayscale' to the div and even the image and tried to print again, but it ...
Anshu Patel's user avatar
-1 votes
1 answer
261 views

We use custom font let's say sans that does not support chinese language. How do i add fallback option in the jspdf that it will not use sans font for chinese. doc.addFileToVFS('custom-sans-normal....
Indraraj26's user avatar
  • 1,994
0 votes
1 answer
281 views

I am using html2canvas and jsPDF for PDF generation. The downloaded PDF should look like the preview of the document, but I am facing issues with the table layout. Specifically, the text in the table ...
Srushti Sonawane's user avatar
2 votes
1 answer
575 views

I am trying to export visible parts of a webpage to PDF using JavaScript. My content includes elements like tables and charts that often have scrolled views. I've attempted to use both html2canvas and ...
Kristina Garanchuk's user avatar
0 votes
1 answer
362 views

I am trying to insert a SVG to my PDF using NestJS and jsPDF. But I think jsPDF doens't have support for inserting SVGs on server. Is there any way around this someone has found? Would be really ...
Pulkit Raina's user avatar
1 vote
0 answers
157 views

doc.addImage(this.image, 'JPEG', 75, 15,57,23); doc.text(20, 100, 'Subject : Notification'); doc.save('Test.pdf'); above code is working fine generated PDF string below, downloaded properly in local ...
B K's user avatar
  • 11
1 vote
0 answers
137 views

I am using pdf.js to show some pdf file with react project, actually using react-pdf which wrapped the pdf.js. Now I am using scale like this to zoom in or zoom out the pdf: <Page key=...
Dolphin's user avatar
  • 40.8k
2 votes
1 answer
70 views

I have two components. Billing component(User type the item details) and billpage component (Pdf page is designed and pdf is generated). The item details from(billing.ts) are passed through service (...
Reegan's user avatar
  • 349
1 vote
0 answers
160 views

I have a large hard-coded grid (more than 300 grid items) with many styles in my RiskGrid.vue component, which is located on the risk.vue page. The RiskGrid.vue component also contains smaller ...
Antonio Klepo's user avatar
1 vote
0 answers
49 views

how do I apply a check on a class check? I have the following html5 logic. My style applies the format to my razor page view. I want to apply the css setting, can I add any ID fields into my somehow?...
Davron Jacobs's user avatar
0 votes
1 answer
311 views

I am using jsPDF to create a PDF file. Some text has special characters. For e.g. instead using H2SO4 I want to write H₂SO₄. Does jsPDF supports it ? Can someone please suggest how to do it?
Atul Sureka's user avatar
  • 3,332
1 vote
0 answers
193 views

I’m using the html2pdf library to generate a PDF from an HTML table. The table spans multiple pages, but the header only appears on the first page. How can I make sure the table header is repeated on ...
Omkar Nikam's user avatar
0 votes
0 answers
54 views

everyone, I'm trying to create a pdf file with jsPDF but I need a logo at the top of the page. I've tried a .jpg and a .png file bu I always get the erro that the file is not a .jpg file or a .png ...
Joaquim Sousa's user avatar
1 vote
2 answers
202 views

Page is getting unresponsive while exporting the page into pdf, refer the below screenshot. Here is the stackblitz code: The below code is used to convert the chart into image which is causing the ...
Sathya's user avatar
  • 51

1
2 3 4 5
52