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

Free Support Forum - aspose.com

Pdf.save - Length cannot be less than zero

Hi

I'm really stumped by this.

I am using PDF for NET to produce a nice document and up till now have been amending it bit by bit. Now, all of a sudden, any change I make no matter how trivial, produces this error:

pdf1.Save(GetServerPath() & PDFName)

ArgumentOutOfRangeException was unhandled by user code - Length cannot be less than zero. Parameter name: length

I've not included the code as it happens with any change. Last time I just changed the font size in this section:

Dim textL1 As Text = New Text()

textL1.TextInfo.FontName = "Arial"

textL1.TextInfo.FontSize = 8

Is there something preventing me from making changes, a license restriction or something like that?

Alan

Sory, I should have added that any time this happens, I reverse the change and it works again.

Alan