Skip to content

Commit

Permalink
Merge pull request #7 from InterWorkAlliance/returnfile
Browse files Browse the repository at this point in the history
Return raw Open XML data as part of PrintResult
  • Loading branch information
marleyg authored and djnicholson committed Oct 27, 2020
1 parent 588ad55 commit 725e415
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/TTF-Printer/TTF-Printer/PrintController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,21 +496,17 @@ internal static void Save(bool validate = false)

private static PrintResult GetPrintResult()
{
_document.Close();
var retVal = new PrintResult();
/*
* We don't need a result put in just yet.
try
{
retVal.OpenXmlDocument = _document.ToFlatOpcString();
retVal.OpenXmlDocument = Convert.ToBase64String(File.ReadAllBytes(_filePath));
}
catch(Exception e)
{
_log.Error("Error getting return OpenXml return string: " + e);
retVal.OpenXmlDocument = "";
}
_document.Close();
*/
_document.Close();
return retVal;
}
}
Expand Down

0 comments on commit 725e415

Please sign in to comment.