When an MSWord section is edited, the PDF created should embed all fonts that are used.

When formats are updated, the Date/Time stamp for the Format record should be set to the Date/Time stamp of the format file.
This commit is contained in:
Rich 2013-10-04 20:29:22 +00:00
parent dd0b9627cc
commit 4abeb80fb4
2 changed files with 5 additions and 2 deletions

View File

@ -339,7 +339,7 @@ namespace LBWordLibrary
} }
public void ExportAsFixedFormat(string OutputFileName, LBWdExportFormat ExportFormat) public void ExportAsFixedFormat(string OutputFileName, LBWdExportFormat ExportFormat)
{ {
InvokeMethod("ExportAsFixedFormat", OutputFileName, ExportFormat, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value); InvokeMethod("ExportAsFixedFormat", OutputFileName, ExportFormat, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, true, Missing.Value);// Embed Fonts into PDF
} }
public void ExportAsFixedFormat(string OutputFileName, LBWdExportFormat ExportFormat, Boolean OpenAfterExport, LBWdExportOptimizeFor OptimizeFor, LBWdExportRange Range, int From, int To, LBWdExportItem Item, Boolean IncludeDocProps, Boolean KeepIRM, LBWdExportCreateBookmarks CreateBookmarks, Boolean DocStructureTags, Boolean BitmapMissingFonts, Boolean UseISO19005_1, object FixedFormatExtClassPtr) public void ExportAsFixedFormat(string OutputFileName, LBWdExportFormat ExportFormat, Boolean OpenAfterExport, LBWdExportOptimizeFor OptimizeFor, LBWdExportRange Range, int From, int To, LBWdExportItem Item, Boolean IncludeDocProps, Boolean KeepIRM, LBWdExportCreateBookmarks CreateBookmarks, Boolean DocStructureTags, Boolean BitmapMissingFonts, Boolean UseISO19005_1, object FixedFormatExtClassPtr)
{ {

View File

@ -231,6 +231,7 @@ namespace VEPROMS.CSLA.Library
private static Format AddFormatToDB(Format parent, string format, bool issub, DateTime Dts, string Userid, string fmtPath, string genmacPath) private static Format AddFormatToDB(Format parent, string format, bool issub, DateTime Dts, string Userid, string fmtPath, string genmacPath)
{ {
string fmtdata = null; string fmtdata = null;
FileInfo fmtfi = null;
string genmacdata = null; string genmacdata = null;
XmlDocument xd = null; XmlDocument xd = null;
@ -242,6 +243,7 @@ namespace VEPROMS.CSLA.Library
try try
{ {
StreamReader srf = new StreamReader(path); StreamReader srf = new StreamReader(path);
fmtfi = new FileInfo(path);
xd = new XmlDocument(); xd = new XmlDocument();
xd.Load(srf); xd.Load(srf);
//xd.Load(path); //xd.Load(path);
@ -299,13 +301,14 @@ namespace VEPROMS.CSLA.Library
{ {
if (!LookupFormats.ContainsKey(fname)) if (!LookupFormats.ContainsKey(fname))
{ {
rec = Format.MakeFormat(parent, fname, nmattr, fmtdata, genmacdata, Dts, Userid); rec = Format.MakeFormat(parent, fname, nmattr, fmtdata, genmacdata, fmtfi.LastWriteTimeUtc, Userid);
} }
else else
{ {
rec = Format.Get(LookupFormats[fname]); rec = Format.Get(LookupFormats[fname]);
rec.Data = fmtdata; rec.Data = fmtdata;
rec.GenMac = genmacdata; rec.GenMac = genmacdata;
rec.DTS = fmtfi.LastWriteTimeUtc;
rec = rec.Save(); rec = rec.Save();
} }
} }