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 8278201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:55:44+00:00 2026-06-08T08:55:44+00:00

I need the TOC to be on the 3rd page. Apparently, if there is

  • 0

I need the TOC to be on the 3rd page. Apparently, if there is a way to control this, it has to be through the XSL stylesheet. All my search attempts didn’t give me a clue though. Is it possible at all?

I can’t use cover option since I need the header to show on both first and second pages.

  • 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-06-08T08:55:45+00:00Added an answer on June 8, 2026 at 8:55 am

    OK I’ve found a way to do it using wkhtmltopdf 0.11. I’ve extracted the first two pages into a separate HTML document and then run it like this

    wkhtmltopdf [options] page cover.html toc --xsl-style-sheet ... input_file.html out.pdf
    

    Unfortunately it took a lot more effort than I expected, since I’m using it in a Rails application through wicked_pdf, and it doesn’t play nice with the new options format, so I had to fork it and make the necessary changes as well.

    The command line generated by wicked_pdf looks like this (long paths omitted):

    "c:/program files (x86)/wkhtmltopdf/wkhtmltopdf.exe"  
       --header-html "file:///path/to/header" --footer-html "file:///path/to/footer" 
       --margin-top 20 --margin-bottom 15 --margin-left 5 --margin-right 40    page "file:///path/to/cover/page" --disable-javascript  toc --xsl-style-sheet "path/to/style/sheet"  - -
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help converting a VB.NET handles statement to C#. This is the VB
I'm new to C#, so this may be a basic question. What I need
Need to apply a filter to a file like this: TUPAC_0006:1:1:2554:2356#0/1 0 * 0
Need a map reduce function by mongo in php This my mongo structure [_id]
I'm using this code for moving files from directories but I need 2 changes
I'm trying to make a web page that only has content within the page
I need to do this for a whole DB column foo : Regex regex
i need to convert this query to C# LINQ but i have no idea
I need to drive a legacy DOS application through SendKey in C#. However, I
I need to write a C# code for grabbing contents of a web page.

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.