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:
parent
dd0b9627cc
commit
4abeb80fb4
@ -339,7 +339,7 @@ namespace LBWordLibrary
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
string fmtdata = null;
|
||||
FileInfo fmtfi = null;
|
||||
string genmacdata = null;
|
||||
XmlDocument xd = null;
|
||||
|
||||
@ -242,6 +243,7 @@ namespace VEPROMS.CSLA.Library
|
||||
try
|
||||
{
|
||||
StreamReader srf = new StreamReader(path);
|
||||
fmtfi = new FileInfo(path);
|
||||
xd = new XmlDocument();
|
||||
xd.Load(srf);
|
||||
//xd.Load(path);
|
||||
@ -299,13 +301,14 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
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
|
||||
{
|
||||
rec = Format.Get(LookupFormats[fname]);
|
||||
rec.Data = fmtdata;
|
||||
rec.GenMac = genmacdata;
|
||||
rec.DTS = fmtfi.LastWriteTimeUtc;
|
||||
rec = rec.Save();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user