Free Support Forum - aspose.com

oPDF.IsImagesInXmlDeleteNeeded=True is not working

Received : 2007/12/04 21:42:50
Message : I'm using oPDF.IsImagesInXmlDeleteNeeded=True in order to autopurge temporary jpeg's when converting XMLAspose documents into PDF's. What I've seen is that under CLR2.0 everything goes ok, but with CLR1.1 images are not deleted.


This message was posted using Aspose.Live 2 Forum

Hi,

I have tested this under .Net Framework 1.1 and was not able to reproduce the error. Can you please provide us with your solution that is able to reproduce this error so that we can more accurately determine the cause of the problem.

Thanks.

Hi Adeel,

This is what I found: images are not purged when save method raises an error (i.e. the oPDF.TruetypeFontMapPath is not accesible). Also a pdf file with 0 bytes is created and realeased upon program termination. So it's not possible to use try-catch for recovering after an error because a pdf is already opened.

Hi,

It looks likely to be an environment issue. Are you sure you have enough rights on the folder where you are setting TrueTypeFontMapPath? Please try to change the path and test it again.

Thanks.