ConvertFile() public method

public ConvertFile ( byte file, string fileName, ConversionOptions options ) : byte[]
file byte
fileName string
options ConversionOptions
return byte[]
 private void TestFile(string testFilePath)
 {
     byte[] testFile = File.ReadAllBytes(testFilePath);
     PdfConverter converter = new PdfConverter();
     byte[] pdf = converter.ConvertFile(testFile, Path.GetFileName(testFilePath), new ConversionOptions());
     Assert.IsNotNull(pdf);
     Assert.IsTrue(pdf.Length > 0);
 }
Exemplo n.º 2
0
 public void TestNull()
 {
     PdfConverter converter = new PdfConverter();
     byte[] response = converter.ConvertFile(null, "nullfile.doc", new ConversionOptions());
 }