diff --git a/OfficeToPDF/Converter.cs b/OfficeToPDF/Converter.cs index 743805a..c82e94e 100644 --- a/OfficeToPDF/Converter.cs +++ b/OfficeToPDF/Converter.cs @@ -342,14 +342,14 @@ private static bool IsCDFReadOnlyEnforced(string filename) OpenMcdf.Extensions.OLEProperties.PropertySetStream ps = null; try { - ps = summaryInfo.AsOLEProperties(); + ps = summaryInfo.AsOleProperties(); } catch (Exception) { // There may be no properties for us to get return false; } - int securityIdx = ps.PropertySet0.PropertyIdentifierAndOffsets.FindIndex(x => x.PropertyIdentifier == OpenMcdf.Extensions.OLEProperties.PropertyIdentifiersSummaryInfo.PIDSI_DOC_SECURITY); + int securityIdx = ps.PropertySet0.PropertyIdentifierAndOffsets.FindIndex(x => x.PropertyIdentifier == OpenMcdf.Extensions.OLEProperties.PropertyIdentifiersSummaryInfo.PidsiDocSecurity); if (securityIdx >= 0 && securityIdx < ps.PropertySet0.Properties.Count) { int security = (int)ps.PropertySet0.Properties[securityIdx].PropertyValue; diff --git a/OfficeToPDF/OfficeToPDF.csproj b/OfficeToPDF/OfficeToPDF.csproj index 294e65c..11975dc 100644 --- a/OfficeToPDF/OfficeToPDF.csproj +++ b/OfficeToPDF/OfficeToPDF.csproj @@ -105,8 +105,8 @@ ..\packages\Costura.Fody.3.3.3\lib\net40\Costura.dll - - ..\packages\DocumentFormat.OpenXml.2.9.1\lib\net40\DocumentFormat.OpenXml.dll + + ..\packages\DocumentFormat.OpenXml.2.10.0\lib\net40\DocumentFormat.OpenXml.dll ..\packages\Ghostscript.NET.1.2.1\lib\net40\Ghostscript.NET.dll @@ -149,14 +149,14 @@ True ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office14\OFFICE.DLL - - ..\packages\OpenMcdf-2.2.1.1.5\lib\net40\OpenMcdf.dll + + ..\packages\OpenMcdf-2.2.1.2\lib\net40\OpenMcdf.dll - - ..\packages\kenjiuno.PdfSharp-WPF.1.31.5198\lib\net40\PdfSharp-WPF.dll + + ..\packages\kenjiuno.PdfSharp-WPF.1.31.5377\lib\net40\PdfSharp-WPF.dll - - ..\packages\kenjiuno.PdfSharp.Xps.1.1.1\lib\net40\PdfSharp.Xps.dll + + ..\packages\kenjiuno.PdfSharp.Xps.1.1.4\lib\net40\PdfSharp.Xps.dll @@ -235,7 +235,9 @@ - + + Designer + diff --git a/OfficeToPDF/packages.config b/OfficeToPDF/packages.config index fc00c29..507cf0d 100644 --- a/OfficeToPDF/packages.config +++ b/OfficeToPDF/packages.config @@ -1,10 +1,10 @@  - + - - - + + + \ No newline at end of file