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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:36:01+00:00 2026-05-13T21:36:01+00:00

I have a ASP.net 3.5 web application developed in VB.net I am using iTextsharp

  • 0

I have a ASP.net 3.5 web application developed in VB.net I am using iTextsharp component to generate PDF document from the ASP.net page.

I am retreving the PDF documents stored in the db and merging them into one PDF. using the memorystream.

But when I try to merge around 1000 pdfs with each containing 2 pages, I am getting Outofmemory exception.

Any suggestions and do you think this is correct approach??

Please help

  • 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-13T21:36:01+00:00Added an answer on May 13, 2026 at 9:36 pm

    I believe the correct approach is to rethink how you’re accomplishing your goal.

    Why are you having a web page compile 1000 PDFs into one PDF?

    Can this not be setup as a job to create the “latest version” of this huge PDF, that is run once daily, and the page you have simply serves the latest version?

    And yes this would run slowly even on 64 bit with 4 gigs of RAM, because this is not the job of a web request, it’s the job of some type of scheduled service.

    Update: In response to your comment, you could perhaps create a temporary loading page that says your file is being generated, and push the work into a background thread. When the thread completes, the loading page starts the download for the full document. Unless you can do what I suggest in my comment, I doubt you can speed things up very much more. Only thing you can do is make the wait more user friendly.

    Perhaps even use a bit of AJAX and give them a status bar with “Merging page 106 of 1000”. They will see progress and be less frustrated.

    A beefier machine would be the only way to help, and 64 bit is required to avoid out of memory.

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

Sidebar

Related Questions

I have developed an web application using Asp.net ( .Net Framework 3.0). In this
I have developed a Web Application using ASP.Net with Microsoft Access as database. Now
I have a web application developed in ASP.NET 2.0, deployed in a data center.
i have developed a web application asp.net C#. on a button click i am
I have developed a MVC web application with ASP.NET MVC and im just wondering
I have an ASP.NET web application the entire site is browsed over HTTPS using
I have an asp.net web application written in C# using a SQL Server 2008
I have a ASP.NET web application which has more than 100 pages. Each page
I have developed an asp.net web application containing 40-50 pages. I have implemented logger
I have a web application developed in asp.net 3.5. The application is used in

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.