Quantcast
Channel: Adobe Community: Message List - PDF Size will increase in size dramatically with every submit.
Viewing all articles
Browse latest Browse all 58

Re: PDF Size will increase in size dramatically with every submit.

$
0
0

Thanks a lot C. Myers,

 

You explanation helped me understand what is happening.

 

I have been following the same method for the past 4 years, and I was hit by this problem (OutOfMemoryException) only when some users started using image size more than 500KB. Then, I decided to report this problem.

 

I was able to rewrite the code to convert from Base64 to binary using buffering:

 

http://forums.asp.net/t/1662571.aspx/1?URGENT+Exception+OutOfMemoryExc eption+thrown+when+when+converting+to+String+

 

So far, I am not getting OutOfMemoryExceptions, but the PDF Size will continue to grow with every submit. However, if the all the images size is less than 50KB, the increase is not significant.

 

Please allow me to ask this question:

 

Is there a way to change the above code so that I can extract only the last version of the submitted PDF from the Data Stream "chunk" element ?

 

Sooner or later, some one will notice that such PDF sizes are not logical. Even when the PDF does not have images, I have noticed in the past, some PDF Sizes (for Staff Profile Data Collection Form) are something like 15MB !!! I was not able to figure out why. But now I understand. I think the user must have submitted the form for saving many times.

 

Now, things are OK. But, I will post back if this problem will fire back.

 

Tarek.


Viewing all articles
Browse latest Browse all 58

Latest Images

Trending Articles





Latest Images