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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:38:12+00:00 2026-05-27T20:38:12+00:00

Does converting to a string(i.e .toString() ) consumes lots of memory or even leads

  • 0

Does converting to a string(i.e .toString() ) consumes lots of memory or even leads to memory leak?If yes.then is there any way to handle this? I think when i am parsing pdf text to simple text my program is consuming lot of memory, dont know if this is the reason.

PS: I am using itext to parse the pdf

  • 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-27T20:38:13+00:00Added an answer on May 27, 2026 at 8:38 pm

    If you have a large pdf, then yes it does consume a lot of memory. The only solution i can see is divide you pdf into smaller ones and then run your operations on each one. Finally, regroup the results

    UPDATE :

    While googling, I found that you CAN split pdf using itext library, check these links:

    http://viralpatel.net/blogs/2009/06/itext-tutorial-merge-split-pdf-files-using-itext-jar.html

    http://sanjaal.com/java/448/java-pdf/splitting-pdf-file-using-java-itext-api-into-multiple-pdfs/

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

Sidebar

Related Questions

Does anyone know of any free tools that can assist in converting an SQL2005
Is there any built-in method in asp.net to convert a string to a uniqueidentifier
Why does GetTempPath always return short path names? Is there a way to return
How does C handle converting between integers and characters? Say you've declared an integer
How does one go about converting an image to black and white in PHP?
Does anyone know of a good library (or code snippet) for converting a TimeSpan
Does anyone know of an open source/free tool for converting pl/sql code to a
Does anyone have any pointers to good resources concerning mesh networks? Maybe I'm not
Does anyone have any code for connecting to a remote server using java and
I am converting double values to string like this: std::string conv(double x) { char

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.