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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:34:00+00:00 2026-05-27T18:34:00+00:00

I need to add bookmarks to pdf documet without using Acrobat SDK (that needs

  • 0

I need to add bookmarks to pdf documet without using Acrobat SDK (that needs the full Acrobat professional installed).
I’m using iTextSharp but is was made for Java and the porting to .net it is not complete.
Do you know an free alternative or documentation to do it?

  • 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-27T18:34:01+00:00Added an answer on May 27, 2026 at 6:34 pm

    You’re claim that “iTextSharp but is was made for Java and the porting to .net it is not complete” is quite mistaken. The main differences are listed here.

    Adding bookmarks with iTextsharp is simple. See the API for PdfOutline and PdfDestination. Here is a simple example to get you started:

    using (Document document = new Document()) {
      PdfWriter writer = PdfWriter.GetInstance(
        document, Response.OutputStream
      );
      document.Open();
      PdfOutline root = writer.RootOutline;
      string section = "Section {0}";
      string paragraph = "Paragraph {0}";
      for (int i = 0; i < 10;) {
        PdfOutline sectionBookmark = new PdfOutline(
          root, 
          new PdfDestination(
            PdfDestination.FITH, writer.GetVerticalPosition(true)
          ),
          string.Format(section, ++i)
        );
        document.Add(new Paragraph(string.Format(section, i)));
        for (int j = 0; j < 4;) {
          PdfOutline subSectionBookmark = new PdfOutline(
            sectionBookmark,
            new PdfDestination(
              PdfDestination.FITH, writer.GetVerticalPosition(true)
            ),
            string.Format(paragraph, ++j)
          );
          document.Add(new Paragraph(string.Format(paragraph, j)));
        }
        document.NewPage();
      }
    }
    

    Above example tested in a web environment with 5.1.3. If your devlopment environment is different, replace Response.OutputStream above with the Stream of your choice.

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

Sidebar

Related Questions

i need Add Row Numbers To a SELECT Query without using Row_Number() function. and
I need to add full web search to my site. I need something like
I need to add multiple empty divs to a container element using jQuery. At
I need to add to compiler flags using bjam. So either I need a
I need add the first_name and last_name fields associated with that User model and
I need to add values for my BookMarks in a Word document. There I
Using JavaScript, is it possible to add a bookmark in Firefox directly, without opening
I need add a new user group for mediawiki. The new group has more
need to add a 2nd css stylesheet to a page. do i add a
I need to add a web part zone to a wiki page. I'm opening

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.