These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

PDF File Size keeps growing and growing...

unleashedmaniac
Registered: Oct 13 2009
Posts: 18

I have a PDF form I imported into LiveCycle Designer to add form field and do the tabbing order. The form is 22 pages long. After I added all my form fields, the file size was 1.7 mb.

I went back in and added a reset form button and about 30 lines of simple javascript. Now, everytime I save the PDF in LiveCycle, it grows by ~700kb. I can open the document in Acrobat and save it with no file size problem, open it in LiveCycle and save, gets bigger again. I tried opening the saved PDF in Acrobat and running the optimizer, but it doesn't reduce the size at all.

I have Adobe Livecycle Designer ES Version 8.2.1.4029.1.523496 on Windows XP.

I saw another post on here about LiveCycle increasing the file size (http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=16411), but I thought the latest patch resolved this issue.

In the above post it going into the XDP file and deleting some lines of code. I have no idea what/where/how to get into the XDP file or even if this is the same problem.

I'm pretty much a newbie when it comes to LiveCycle.

Thanks,

James

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

check the XML-source of your growing file.

If the code line <?templateDesigner StyleID aped2?> or <?templateDesigner StyleID aped3?> is repeated over and over again, you're victim of a LiveCycle bug.
To handle this, save the form as XDP and open it with a hex editor like "Tiny Hexer".
Search for the code line and the use the function "find and replace" to find all of this lines and replace them with nothing.
Then save the file and reopen it with LiveCycle Designer and save it again.

By the way.
If you save the form as a dynamic PDF (XFA) then Acrobats optimizer won't have any effect.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

unleashedmaniac
Registered: Oct 13 2009
Posts: 18
radzmar wrote:
Hi,check the XML-source of your growing file.

If the code line <?templateDesigner StyleID aped2?> or <?templateDesigner StyleID aped3?> is repeated over and over again, you're victim of a LiveCycle bug.
To handle this, save the form as XDP and open it with a hex editor like "Tiny Hexer".
Search for the code line and the use the function "find and replace" to find all of this lines and replace them with nothing.
Then save the file and reopen it with LiveCycle Designer and save it again.

By the way.
If you save the form as a dynamic PDF (XFA) then Acrobats optimizer won't have any effect.
I checked my XML-source and it doesn't contain one line of code with <?templateDesigner StyleID aped2?> or <?templateDesigner StyleID aped3?>. And, the XML total line numbers don't increase after I save the document.How do you save the document as XDP? I went to FILE, SAVE AS and I only have the option for "Acrobat (Static) PDF Form (*.pdf)".

On a side note, the original forms were created in some program and exported to PDF. Then, we imported the PDF into LiveCycle and added the fillable form fields.

James
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
OK,

XDP is only available for dynamic XML-forms, you fully created in Designer.
If you imported the PDF-file into Designer with a fixed layout you only can save as a static form.
So the difference in file size can't be caused by a bug in the XML-Source.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

unleashedmaniac
Registered: Oct 13 2009
Posts: 18
Hmmmmm... I don't know what is happening... It doesn't appear as if my XML is growing, just the file size.

I wanted to try something out, so I took the base PDF document (800kb) and imported it into LiveCycle. Then I copies all of the form fields page by page from the 30mb file to the base document. When I resaved the base document with all of the form fields, it was only 1.2mb (woohoo!).

I checked both the 30mb file and the 1.2mb file's XML source and they were both at 15,612 rows. So, I don't think it's the XML.

Also, I made slight changes and resaved the new document in LiveCycle and the file size didn't increase.

Who knows what's going on here... I'll just shake my fist at the acrobat gremlins and hope this resolves my issue.

James
pjjdp
Registered: Nov 10 2009
Posts: 1
Hi,

I have a similar issue. I imported a 1 page PDF and added the fillable areas. My file grew from 35kb to 13mb.

I was on an older version of livecycle. I read somewhere on the internet to update to the latest, open the doc and resave it.
So I spent a few hours on downloading. Now I'm on 8.2.1.4029.1.523496 as well. But everytime I open and save, it still grows and grows.

Now I will probably have to redesign the form completely from scratch.