I am using pdfkit gem for generating the pdf file. I am using stylesheets for changing the style with
pdf = PDFKit.new(html, orientation: 'Landscape')
pdf.stylesheets << File.join(Rails.root, 'app', 'assets', 'stylesheets', 'pdf.css')
In my app/assets/stylesheets/pdf.css
, I have:
a {
cursor: default;
color: black;
}
In my html I have a simple link_to
tag. I want to disable the link in the pdf, however, the above code makes the text of the link black
but the cursor is still pointer
. Also, I tried pointer-events: none
. This also doesn't seem to work. Can anyone please help me with this issue?
Note: I found similar issue in this github issue, but was not able to find an answer here.