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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:13:30+00:00 2026-06-11T07:13:30+00:00

I am using ABCpdf7 to insert a table of contents at the beginning of

  • 0

I am using ABCpdf7 to insert a table of contents at the beginning of another PDF Doc. I can’t use Doc.Append() because it temporarily duplicates the large base PDF in memory, so I am doing the following (which I based on the info for AddImageDoc from http://www.websupergoo.com/helppdf7net/):

Doc toc = LoadSubReport("someTableOfContents.pdf");
for (int i = 1; i <= toc.PageCount; i++)
{
    Report.Page = Report.AddPage(i);
    Report.MediaBox.String = toc.MediaBox.String;
    Report.Rect.String = toc.MediaBox.String;

    Report.AddImageDoc(toc, i, null);
 }

This adds the pages from the table of contents pdf correctly, but a few pages into the original document, the pages appear damaged or missing. Here’s what I see in Reader for the remainder of the document (the little squares are the remaining pages):

Screenshot of broken pages

What is causing this? Is there a better way I can insert the table of contents 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-11T07:13:32+00:00Added an answer on June 11, 2026 at 7:13 am

    I was using ABCpdf 7022. Installing 7042 fixed the problem.

    For anyone else concerned with related problems, a suggestion I got from ABCpdf support was to use Doc.Append to add the table of contents to the end, then Doc.RemapPages to move it to the start of the PDF.

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

Sidebar

Related Questions

I'm dynamically generating a PDF using ABCpdf which contains a table of contents that
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using a populated Table Type as the source for a TSQL-Merge. I want to
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using Microsoft SQL Server 2005, is there any way to see when a table
I'm using the ABCpdf.net component to convert HTML to PDF. Some of the HTML
I am using Websupergoo's ABCpdf for ASP.NET and I am trying to generate PDF's
I'm using ABCpdf to extract the text content of some PDF files, in particular
Using Android TelephonyManager an application can obtain the state of data activity over the

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.