Compare commits
No commits in common. "cae3e2323d250b2c7cfc9dc6c55f6a239f1a7359" and "ce8497e61f69d57a92cf3d4ba367a98c6ea82716" have entirely different histories.
cae3e2323d
...
ce8497e61f
@ -701,24 +701,22 @@ namespace Volian.Print.Library
|
||||
{
|
||||
if (File.Exists(outputFileName))
|
||||
{
|
||||
if (!BaselineTesting)
|
||||
String tmpExt = System.IO.Path.GetExtension(outputFileName);
|
||||
String tmpPTH = System.IO.Path.GetDirectoryName(outputFileName);
|
||||
String tmpFN = System.IO.Path.GetFileName(outputFileName);
|
||||
String tmpFNNoExt = System.IO.Path.GetFileNameWithoutExtension(outputFileName);
|
||||
|
||||
var files = new HashSet<string>(Directory.GetFiles(tmpPTH, "*.pdf"));
|
||||
//string baseName = Path.Combine(scpath, "Screenshot_");
|
||||
string filename;
|
||||
int i = 0;
|
||||
do
|
||||
{
|
||||
String tmpExt = System.IO.Path.GetExtension(outputFileName);
|
||||
String tmpPTH = System.IO.Path.GetDirectoryName(outputFileName);
|
||||
String tmpFN = System.IO.Path.GetFileName(outputFileName);
|
||||
String tmpFNNoExt = System.IO.Path.GetFileNameWithoutExtension(outputFileName);
|
||||
filename = tmpPTH + @"\" + tmpFNNoExt + "_" + ++i + ".pdf";
|
||||
} while (files.Contains(filename));
|
||||
|
||||
var files = new HashSet<string>(Directory.GetFiles(tmpPTH, "*.pdf"));
|
||||
//string baseName = Path.Combine(scpath, "Screenshot_");
|
||||
string filename;
|
||||
int i = 0;
|
||||
do
|
||||
{
|
||||
filename = tmpPTH + @"\" + tmpFNNoExt + "_" + ++i + ".pdf";
|
||||
} while (files.Contains(filename));
|
||||
outputFileName = filename;
|
||||
|
||||
outputFileName = filename;
|
||||
}
|
||||
}
|
||||
|
||||
writer = PdfWriter.GetInstance(document, new FileStream(outputFileName, FileMode.Create));
|
||||
|
Loading…
x
Reference in New Issue
Block a user