• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enhancing PDF generation performance  RSS feed

 
Smitesh Shinde
Ranch Hand
Posts: 45
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OUR APPLICATION IS GETTING NUMBER OF REQUESTS TO GENERATE LARGER PDF FILES(SAY UPTO 5-10 MB).
E ARE USING ITEXT FOR GENERATING PDF.

CAN ANYONE SUGGEST ME BEST WAY TO HANDLE MULTIPLE PDF GENERATION RQUESTS??
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, don't shout. Learn to type properly.

If your question is about how to make iText run faster, you will probably not get answers here. You are likely to have more luck at an iText-specific forum (if such exists).

[If anyone reading does know about iText, don't be put off from replying - please do so].

If iText is written in such a way that more than one operation can be in progress, on separate threads, simultaneously, then arranging your application to work like this may help. That's especially true if your computer has multiple cores or CPUs.

You should profile your application to see what's taking all the time. Is it actually the iText conversion itself, or is it some ancillary input/output?

Lastly, I happen to work for a company that sells much better document conversion software, including conversions to/from PDF. This is not free software, but can be very cost-effective, depending on your application. It's not Java, but it is multi-platform, and can easily be accessed from Java via JNI. If you should happen to be interested, you can send me a private message.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37256
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Smit,
You can generate multiple PDFs at the same time. iText is open source. Each thread can work on a separate file.

I second Peter's suggestion to run a profiler to see where the bottleneck is. Asking how to speed up iText is like asking how to speed up Java. It's too vague to get useful feedback.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!