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

Free Support Forum - aspose.com

Aspose.Words not conversion all page to pdf

Hi,


I’m facing a weird behaviour using Aspose.Words to convert a docx file to pdf.


this is my code :-

Dim stream As New MemoryStream()
Dim MyDir As String = “C:\Users\hp\Downloads”
Dim doc As New Document(MyDir & “test.docx”)
Dim pages As Integer = doc.BuiltInDocumentProperties.Pages
Response.Write(pages.ToString)
doc.AcceptAllRevisions()
doc.Save(MyDir & “test.pdf”, SaveFormat.Pdf)

How this can be explained please ?

Thanks in advance.

Hi there,

Thanks for your inquiry. Perhaps, you are using Aspose.Words without license. Please note that in evaluation mode there
are some limitations applied. E.g A
spose.Words injects an evaluation watermark at the top of the document. The document’s content are truncated after a certain number of paragraphs during import or export.


Please request for temporary license from here:
http://www.aspose.com/corporate/purchase/temporary-license.aspx

Please read the following documentation link about applying license.
http://www.aspose.com/docs/display/wordsnet/Applying+a+License

If
you still face problem, please share your input Word document here for testing purposes. I will investigate the issue on my side and
provide you more information.

Dim _licence As New Aspose.Words.License()
Dim lic() As Byte = My.Computer.FileSystem.ReadAllBytes(HttpContext.Current.Server.MapPath("\bin") + "\Aspose.Total.lic")
Dim s6 As Stream = New MemoryStream(lic)
_licence.SetLicense(s6)
yes i knew setting the licence. still not working

Hi there,

Thanks for your inquiry. Could you please attach your input Word and output Pdf documents here for testing? I will investigate the issue on my side and provide you more information.