diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/RandomAccessFileOrArray.cs b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/RandomAccessFileOrArray.cs index 559bcaf..b536239 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/RandomAccessFileOrArray.cs +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/RandomAccessFileOrArray.cs @@ -57,7 +57,17 @@ public RandomAccessFileOrArray(string filename, bool forceRead) } else { - Stream isp = BaseFont.GetResourceStream(filename); + //Stream isp = BaseFont.GetResourceStream(filename); + Stream isp = null; + if ("-".Equals(filename)) + { + isp = ((StreamReader)Console.In).BaseStream; + } + else + { + isp = BaseFont.GetResourceStream(filename); + } + if (isp == null) throw new IOException(filename + " not found as file or resource."); try