Skip to content

Commit

Permalink
Fix define bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ststeiger committed Aug 15, 2018
1 parent c7d0f32 commit ca99c72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PdfSharpCore/Pdf.IO/PdfReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static class PdfReader
/// </summary>
public static int TestPdfFile(string path)
{
#if !NETFX_CORE && !PORTABLE
#if NETCOREAPP1_1 || (!NETFX_CORE && !PORTABLE)
FileStream stream = null;
try
{
Expand All @@ -93,7 +93,7 @@ public static int TestPdfFile(string path)
{
if (stream != null)
{
#if UWP
#if NETCOREAPP1_1 || UWP
stream.Dispose();
#else
stream.Close();
Expand Down
12 changes: 12 additions & 0 deletions Stammbaum/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ select ancestorList
}


static void TestPdfReader()
{
string fn = @"C:\Program Files\Microsoft\R Client\R_SERVER\doc\manual\fullrefman.pdf";

using (PdfSharpCore.Pdf.PdfDocument pr = PdfSharpCore.Pdf.IO.PdfReader.Open(fn))
{
System.Console.WriteLine(pr.Pages.Count);
}

}


static void Main(string[] args)
{
// TfsRemover.RemoveTFS();
Expand Down

0 comments on commit ca99c72

Please sign in to comment.