Skip to content

Commit

Permalink
update some libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
vittala committed Feb 26, 2020
1 parent 33dc66b commit 49e068d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions OfficeToPDF/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
20 changes: 11 additions & 9 deletions OfficeToPDF/OfficeToPDF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
<Reference Include="Costura, Version=3.3.3.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.3.3.3\lib\net40\Costura.dll</HintPath>
</Reference>
<Reference Include="DocumentFormat.OpenXml, Version=2.9.1.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
<HintPath>..\packages\DocumentFormat.OpenXml.2.9.1\lib\net40\DocumentFormat.OpenXml.dll</HintPath>
<Reference Include="DocumentFormat.OpenXml, Version=2.10.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
<HintPath>..\packages\DocumentFormat.OpenXml.2.10.0\lib\net40\DocumentFormat.OpenXml.dll</HintPath>
</Reference>
<Reference Include="Ghostscript.NET, Version=1.2.1.0, Culture=neutral, PublicKeyToken=f85051de34525b59, processorArchitecture=MSIL">
<HintPath>..\packages\Ghostscript.NET.1.2.1\lib\net40\Ghostscript.NET.dll</HintPath>
Expand Down Expand Up @@ -149,14 +149,14 @@
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office14\OFFICE.DLL</HintPath>
</Reference>
<Reference Include="OpenMcdf, Version=2.1.1.5, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OpenMcdf-2.2.1.1.5\lib\net40\OpenMcdf.dll</HintPath>
<Reference Include="OpenMcdf, Version=2.1.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OpenMcdf-2.2.1.2\lib\net40\OpenMcdf.dll</HintPath>
</Reference>
<Reference Include="PdfSharp-WPF, Version=1.31.5198.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
<HintPath>..\packages\kenjiuno.PdfSharp-WPF.1.31.5198\lib\net40\PdfSharp-WPF.dll</HintPath>
<Reference Include="PdfSharp-WPF, Version=1.31.5377.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
<HintPath>..\packages\kenjiuno.PdfSharp-WPF.1.31.5377\lib\net40\PdfSharp-WPF.dll</HintPath>
</Reference>
<Reference Include="PdfSharp.Xps, Version=1.1.1.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
<HintPath>..\packages\kenjiuno.PdfSharp.Xps.1.1.1\lib\net40\PdfSharp.Xps.dll</HintPath>
<Reference Include="PdfSharp.Xps, Version=1.1.4.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
<HintPath>..\packages\kenjiuno.PdfSharp.Xps.1.1.4\lib\net40\PdfSharp.Xps.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -235,7 +235,9 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions OfficeToPDF/packages.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="3.3.3" targetFramework="net40" />
<package id="DocumentFormat.OpenXml" version="2.9.1" targetFramework="net40" />
<package id="DocumentFormat.OpenXml" version="2.10.0" targetFramework="net40" />
<package id="Fody" version="4.2.1" targetFramework="net40" developmentDependency="true" />
<package id="Ghostscript.NET" version="1.2.1" targetFramework="net40" />
<package id="kenjiuno.PdfSharp.Xps" version="1.1.1" targetFramework="net40" />
<package id="kenjiuno.PdfSharp-WPF" version="1.31.5198" targetFramework="net40" />
<package id="OpenMcdf-2" version="2.1.1.5" targetFramework="net40" />
<package id="kenjiuno.PdfSharp.Xps" version="1.1.4" targetFramework="net40" />
<package id="kenjiuno.PdfSharp-WPF" version="1.31.5377" targetFramework="net40" />
<package id="OpenMcdf-2" version="2.1.2" targetFramework="net40" />
</packages>

0 comments on commit 49e068d

Please sign in to comment.