public ConvertUrl ( string url, |
||
url | string | |
options | ||
리턴 | byte[] |
public void TestValidUrl() { PdfConverter converter = new PdfConverter(); byte[] pdf = converter.ConvertUrl("http://www.google.com", new HtmlConversionOptions()); Assert.IsNotNull(pdf); Assert.IsTrue(pdf.Length > 0); }
public void TestRelativedUrl() { PdfConverter converter = new PdfConverter(); byte[] pdf = converter.ConvertUrl("/webapp/index.php", new HtmlConversionOptions()); }
public void TestInvalidUrl() { PdfConverter converter = new PdfConverter(); byte[] pdf = converter.ConvertUrl("https://www.sdfksdlfklsdf.com", new HtmlConversionOptions()); }