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

Free Support Forum - aspose.com

Convert html to pdf : issue with script tags

Hello,

I’m trying to convert to pdf this exemple of html page


my title

suite" ;
}

my html text


Produced file contains

"suite" ;
}

my html text"


instead of

"my html text"

It seems that you are using a regex to remove scripts (<script.?>.?</script> ?), but it don’t works if the script contains the string “script”

(I have to find a workaround using my current Aspose.Words version. If you modify the regex, can you give me the new one ?)

Thanks

Hi,


Thanks for your inquiry. Aspose.Words does not deal with Javascript and no Javascript is read or written during open and save. However, in your case, Aspose.Words mimics the behaviour of Microsoft Word. To you, this means that if you convert your input HTML file into Word document using Aspose.Words, the output will appear exactly as if it was done by Microsoft Word.

If we can help you with anything else, please feel free to ask.

Best regards,