We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TextStamp increase filesize

Hi,

if I add a one-row TextStamp in four pages to PDF the filesize will increase out of 105 KB to 147 KB.
How can I stop the great increase of filesize?

Hi Marc,


Thanks
for using our products.
<o:p></o:p>

I have tested the scenario and I am able to notice the same problem. For the sake of correction, I have logged this issue as PDFNEWNET-35077 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

Hi Marc,


Thanks for your patience.

We have further investigated the problem reported earlier and have found that when stamp is added to document, Arial font is added. FontFile2 stream size is ~38Kb and that’s why file size is increased. Please try using system font:

[C#]

stamp.TextState.Font = FontRepository.FindFont(“Arial”);
stamp.TextState.Font.IsEmbedded = false;

stamp.TextState.Font.IsSubset = false;



Using above stated approach will reduce the size of resultant file but when using this approach, fist you need to install Arial font over your system.

Hi,

using the isEmbedded-attribute reduce the file size.
Perfect.
Thanks

The issues you have found earlier (filed as PDFNEWNET-35077) have been fixed in Aspose.Pdf for .NET 8.2.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.