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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:13:22+00:00 2026-05-26T11:13:22+00:00

I’m evaluating Aspose.Net – so far it’s great for my needs. (ITextSharp, PDFOne, CLPrint,

  • 0

I’m evaluating Aspose.Net – so far it’s great for my needs. (ITextSharp, PDFOne, CLPrint, Adobe and ABCPdf (WebSupergoo) did not meet my needs – not the point of this question, so please don’t answer with “have you tried X yet?”)

I want to load a PDF from file once, then in a loop, set some form fields, then save it. Works great, except I noticed the file size constantly growing. I figured it was due to the form fields, but this isn’t the case… notice this disturbing code and result:

The Code

static void Main(string[] args)
{
    var form = new Aspose.Pdf.Facades.Form(@"c:\test.pdf");

    for (int i = 0; i < 100; i++)
    {
        using (var tempStream = new MemoryStream())
        {
            form.DestStream = tempStream;

            form.Save();

            Console.WriteLine("Size: " + tempStream.Length);
        }
    }
}

The Disturbing Result

Aspose growing file size screenshot

Have any of you used Aspose to load a PDF once, and then save it multiple times, and somehow overcame the growing file-size issue?

P.S. – If I re-new-up the object every time, the file size stays low, but that’s slower

  • 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-26T11:13:23+00:00Added an answer on May 26, 2026 at 11:13 am

    The output file size increases with each iteration because you’re using the component in evaluation mode. When working in evaluation mode, it adds evaluation watermarks in the PDF file. Moreover, in evaluation mode, component is little slower too due to the evaluation checks and watermarks etc.

    Please use the component with the license file. If you’re just evaluating then you may get a temporary license for 30 days to test the application without any such limitations.

    Also, please make sure that you’re using the latest version of the component — Aspose.Pdf for .NET 6.3.0.

    If you still find any further questions or issues, please share with us.

    I have also added a snapshot of the output received at my end with the license file:

    Output with Licensed Version

    Disclosure: I work as a developer evangelist at Aspose.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't

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.