Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra Pages in Cover not accounted for on TOC #718

Open
cal1801 opened this issue Feb 14, 2018 · 0 comments
Open

Extra Pages in Cover not accounted for on TOC #718

cal1801 opened this issue Feb 14, 2018 · 0 comments

Comments

@cal1801
Copy link

cal1801 commented Feb 14, 2018

I have a full PDF working but have run into an issues with page count and dynamically adding pages to the cover page. Based on customization a catalog can be generated with 1, 2, or 3 pages. However the toc doesn't take those pages into account. On the TOC it will always list the TOC as page 2.
My setup:

  1. cover page breaks are manually called by "page-break" div.
  2. Cover is generated as a render_to_string then passed into pdf_from_string as :extra => cover along with all other options
  3. using wicked_pdf 0.11 and would rather not upgrade for this issue. (tried and caused to many issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant