The process includes a (possibly overgenerous) timeout, so we don't try to / uses an external program to generate the PDF from the HTML file, so it doesn't need to be run on Note that the implementation (as of March 2015) / Runs PdfMaker.MakePdf() with the desired arguments. "Generated PDF file started with the wrong 4-byte signature (Indic script filenames and content)") Var bytes = File.ReadAllBytes(output.Path) Īssert.Less(1000, bytes.Length, "Generated PDF file is way too small! (Indic script filenames and content)") Īssert.IsTrue (bytes = (byte)'%' & bytes = (byte)'P' & bytes = (byte)'D' & bytes = (byte)'F', , ) Īssert.IsTrue(File.Exists(output.Path), "Failed to convert trivial HTML file to PDF (Indic script filenames and content)") RunMakePdf(maker, input.Path, output.Path, "A5", false, false, false, Public void MakePdf_BookNameIsNonAscii_OutputsPdf() ![]() we don't actually have a way of knowing it did a booklet Maker.MakePdf(input.Path, output.Path, "A5", false,, , new DoWorkEventArgs(null)) ![]() Using (var output = TempFile.WithFilename("北京.pdf")) Using (var input = TempFile.WithFilename("北京.htm")) Public void MakePdf_BookNameIsChinese_OutputsPdf()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |