Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6204647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:07:59+00:00 2026-05-24T05:07:59+00:00

I used an absolute URI for referencing the font file, but I get this

  • 0

I used an absolute URI for referencing the font file, but I get this error:

Failed to execute:  
../../../bin/wkhtmltopdf-amd64    --margin-top 0 --margin-bottom 0 --margin-left 0 --margin-right 0  --orientation 'Portrait' --page-size 'A4' --dpi '300'   -q - -   
Error: PDF could not be generated!

Nothing of use for debugging. I can’t install the font locally because I’m on a shared host (meaning I can’t avoid using @font-face). When debugging, the html page renders just fine; when generating the PDF, I get the error. If I try and embed the font directly using base64 encoding, the font just doesn’t get applied (defaults to another font).

Further testing:

It is only when the @font-face rule is being applied that it fails without a reason. If I set the style media to be “print”, no errors – but no font either. When I set it to “all” and the font is either a) correctly referenced or b) input directly via base64 encoding – it fails.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:08:00+00:00Added an answer on May 24, 2026 at 5:08 am

    Turns out it isn’t wkhtmltopdf’s fault – it’s webkit’s fault.

    https://bugzilla.mozilla.org/show_bug.cgi?id=468568

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found similar topics but they all used absolute positioning which placed the canvases
I used position:absolute; so that when you click the tab Send this page to
Is z-index only used when you set an element's position to absolute or it
I'm absolute beginner when it comes to mono for android . I've used following
I used the phonegap website to create an IPA file. Now I want to
I converted a local sound file to a resource, which built this in my
I used to think that everyone used relative paths (e.g. /styles/style.css ). But I
I have used absolute links throughout my site, the problem comes when I am
I'm trying to parse a webpage using open-uri + hpricot but it seems to
Ive used absolute positioning and CSS3 animations so clicking a trigger div makes another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.