Skip to content

Commit

Permalink
Added unethicalreading
Browse files Browse the repository at this point in the history
  • Loading branch information
olopatnov-bbapp committed Mar 26, 2019
1 parent 65cbc9f commit b35f4fb
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 38 deletions.
2 changes: 2 additions & 0 deletions PdfConcatenator/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ private void generateButton_Click(object sender, EventArgs e)
}
else
{
PdfReader.unethicalreading = true;
using (var reader = new PdfReader(arg))
{
copy.AddDocument(reader);
Expand Down Expand Up @@ -183,5 +184,6 @@ private void listBoxFiles_DragDrop(object sender, DragEventArgs e)
var pdfFiles = files.Where(x => x.EndsWith(".pdf", StringComparison.InvariantCultureIgnoreCase)).ToArray();
listBoxFiles.Items.AddRange(pdfFiles);
}

}
}
96 changes: 60 additions & 36 deletions PdfConcatenator/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -303,21 +303,6 @@
<data name="&gt;&gt;panel5.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="panel4.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Right</value>
</data>
<data name="panel4.Location" type="System.Drawing.Point, System.Drawing">
<value>310, 29</value>
</data>
<data name="panel4.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 3, 4, 4</value>
</data>
<data name="panel4.Size" type="System.Drawing.Size, System.Drawing">
<value>113, 29</value>
</data>
<data name="panel4.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;panel4.Name" xml:space="preserve">
<value>panel4</value>
</data>
Expand All @@ -330,27 +315,6 @@
<data name="&gt;&gt;panel4.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label2.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>8, 8</value>
</data>
<data name="label2.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 4, 4, 4</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>63, 21</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>Output file</value>
</data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
</data>
Expand Down Expand Up @@ -414,6 +378,66 @@
<data name="&gt;&gt;panel2.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="panel4.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Right</value>
</data>
<data name="panel4.Location" type="System.Drawing.Point, System.Drawing">
<value>310, 29</value>
</data>
<data name="panel4.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 3, 4, 4</value>
</data>
<data name="panel4.Size" type="System.Drawing.Size, System.Drawing">
<value>113, 29</value>
</data>
<data name="panel4.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;panel4.Name" xml:space="preserve">
<value>panel4</value>
</data>
<data name="&gt;&gt;panel4.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panel4.Parent" xml:space="preserve">
<value>panel3</value>
</data>
<data name="&gt;&gt;panel4.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label2.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>8, 8</value>
</data>
<data name="label2.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 4, 4, 4</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>63, 21</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>Output file</value>
</data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
</data>
<data name="&gt;&gt;label2.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label2.Parent" xml:space="preserve">
<value>panel3</value>
</data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="panel1.Location" type="System.Drawing.Point, System.Drawing">
<value>18, 31</value>
</data>
Expand Down
4 changes: 2 additions & 2 deletions PdfConcatenator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]

0 comments on commit b35f4fb

Please sign in to comment.