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

  • SEARCH
  • Home
  • 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 6048817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:30:23+00:00 2026-05-23T07:30:23+00:00

I am using wkhtmltopdf(html to pdf converter) and am running it through a php

  • 0

I am using wkhtmltopdf(html to pdf converter) and am running it through a php shell_exec.

When running wkhtmltopdf --help one option is size, with the help text being

Set paper size to: A4, Letter, etc.

I am wondering if someone has a list of paper sizes this executable will run?

The specific version is wkhtmltopdf-0.9.9-static-i386

  • 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-23T07:30:23+00:00Added an answer on May 23, 2026 at 7:30 am

    If you take a look through the pdfsettings.cc source in the project repository, you’ll find this list, which looks to me like the accepted list of named paper sizes.

    res["A0"] = QPrinter::A0;
    res["A1"] = QPrinter::A1;
    res["A2"] = QPrinter::A2;
    res["A3"] = QPrinter::A3;
    res["A4"] = QPrinter::A4;
    res["A5"] = QPrinter::A5;
    res["A6"] = QPrinter::A6;
    res["A7"] = QPrinter::A7;
    res["A8"] = QPrinter::A8;
    res["A9"] = QPrinter::A9;
    res["B0"] = QPrinter::B0;
    res["B1"] = QPrinter::B1;
    res["B10"] = QPrinter::B10;
    res["B2"] = QPrinter::B2;
    res["B3"] = QPrinter::B3;
    res["B4"] = QPrinter::B4;
    res["B5"] = QPrinter::B5;
    res["B6"] = QPrinter::B6;
    res["B7"] = QPrinter::B7;
    res["B8"] = QPrinter::B8;
    res["B9"] = QPrinter::B9;
    res["C5E"] = QPrinter::C5E;
    res["Comm10E"] = QPrinter::Comm10E;
    res["DLE"] = QPrinter::DLE;
    res["Executive"] = QPrinter::Executive;
    res["Folio"] = QPrinter::Folio;
    res["Ledger"] = QPrinter::Ledger;
    res["Legal"] = QPrinter::Legal;
    res["Letter"] = QPrinter::Letter;
    res["Tabloid"] = QPrinter::Tabloid;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a class in PHP that generates PDF documents using the WKHTMLTOPDF
I'm using wkhtmltopdf on my server to transfer HTML document to PDF. It works
I am using wkhtmltopdf to create PDF reports from HTML, I need to create
I am converting some docs to pdf using wkhtmltopdf (currently using perl and the
I installed wkhtmltopdf using sudo apt-get install wkhtmltopdf I have a php script that
Having a problem with wkhtmltopdf. I'm using it to take pdf snapshots of pages
I installed PDFKit and wkhtmltopdf. In one action I render a simple html like:
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I'm launching wkhtmltopdf from within my Java app (part of a Tomcat server, running

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.