Skip to content

Commit

Permalink
[bugfix] unicode filename support (thx to daooze for bugreport)
Browse files Browse the repository at this point in the history
  • Loading branch information
hessandrew committed Jun 11, 2019
1 parent f0cb7a4 commit 55d9e6d
Show file tree
Hide file tree
Showing 48 changed files with 3,621 additions and 366 deletions.
4 changes: 2 additions & 2 deletions PDFProcessor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben

[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Print to PDF, PDF/A, PDF/X, PNG, JPEG, TIF and text

# Download

https://github.com/clawsoftware/clawPDF/releases/download/0.8.3/clawPDF_0.8.3_setup.msi
https://github.com/clawsoftware/clawPDF/releases/download/0.8.4/clawPDF_0.8.4_setup.msi

# Tested under

Expand All @@ -18,6 +18,10 @@ https://github.com/clawsoftware/clawPDF/releases/download/0.8.3/clawPDF_0.8.3_se

# Changelog

## v0.8.4 (2019.06.11)

- [bugfix] unicode filename support (thx to daooze for bugreport)

## v0.8.3 (2019.05.31)

- [bugfix] starts under System-Account
Expand Down Expand Up @@ -71,7 +75,7 @@ https://github.com/clawsoftware/clawPDF/releases/download/0.8.3/clawPDF_0.8.3_se

# Build

- Visual Studio 2017
- Visual Studio 2019


# Third-party
Expand All @@ -84,7 +88,7 @@ https://github.com/clawsoftware/clawPDF/releases/download/0.8.3/clawPDF_0.8.3_se
- parts of the ghostscript control: PdfScribe 1.0.6 (https://github.com/stchan/PdfScribe), licensed under AGPL v3 license.
- redirection Port Monitor: clawmon (https://github.com/clawsoftware/clawmon), licensed under GPL v2 license.
- Postscript Printer Drivers: Microsoft Postscript Printer Driver V3 (https://docs.microsoft.com/en-us/windows-hardware/drivers/print/microsoft-postscript-printer-driver), copyright (c) Microsoft Corporation. All rights reserved.
- Postscript and PDF interpreter/renderer: Ghostscript 9.26 (https://www.ghostscript.com/download/gsdnld.html), licensed under AGPL v3 license.
- Postscript and PDF interpreter/renderer: Ghostscript 9.27 (https://www.ghostscript.com/download/gsdnld.html), licensed under AGPL v3 license.
- SystemWrapper 0.25.0.186 (https://github.com/jozefizso/SystemWrapper), licensed under Microsoft Public license.
- ftplib 1.0.1.1 (https://archive.codeplex.com/?p=ftplib), licensed under MIT license.
- DataStorage.dll, licensed under pdfforge Freeware License.
Expand Down
76 changes: 35 additions & 41 deletions SetupHelper/Driver/PrinterHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,54 +203,48 @@ public bool AddclawPDFPortMonitor(String monitorFilePath)
try
{
oldRedirectValue = DisableWow64Redirection();
if (!DoesMonitorExist(PORTMONITOR))
{
// Copy the monitor DLL to
// the system directory
String monitorfileSourcePath = Path.Combine(monitorFilePath, MONITORDLL);
String monitorfileDestinationPath = Path.Combine(Environment.SystemDirectory, MONITORDLL);
String monitoruifileSourcePath = Path.Combine(monitorFilePath, MONITORUIDLL);
String monitoruifileDestinationPath = Path.Combine(Environment.SystemDirectory, MONITORUIDLL);
//if (!DoesMonitorExist(PORTMONITOR))
//{
// Copy the monitor DLL to
// the system directory
String monitorfileSourcePath = Path.Combine(monitorFilePath, MONITORDLL);
String monitorfileDestinationPath = Path.Combine(Environment.SystemDirectory, MONITORDLL);
String monitoruifileSourcePath = Path.Combine(monitorFilePath, MONITORUIDLL);
String monitoruifileDestinationPath = Path.Combine(Environment.SystemDirectory, MONITORUIDLL);

Spooler.stop();
Spooler.stop();

try
{
File.Copy(monitoruifileSourcePath, monitoruifileDestinationPath, true);
}
catch
{
}
try
{
File.Copy(monitoruifileSourcePath, monitoruifileDestinationPath, true);
}
catch { }

try
{
File.Copy(monitorfileSourcePath, monitorfileDestinationPath, true);
}
catch (IOException)
{
// File in use, log -
// this is OK because it means the file is already there
}
try
{
File.Copy(monitorfileSourcePath, monitorfileDestinationPath, true);
}
catch { }

Spooler.start();
Spooler.start();

MONITOR_INFO_2 newMonitor = new MONITOR_INFO_2();
newMonitor.pName = PORTMONITOR;
newMonitor.pEnvironment = ENVIRONMENT;
newMonitor.pDLLName = MONITORDLL;
if (!AddPortMonitor(newMonitor))
Console.WriteLine(String.Format("Could not add port monitor {0}", PORTMONITOR) + Environment.NewLine +
String.Format(WIN32ERROR, Marshal.GetLastWin32Error().ToString()));
else
monitorAdded = true;
}
MONITOR_INFO_2 newMonitor = new MONITOR_INFO_2();
newMonitor.pName = PORTMONITOR;
newMonitor.pEnvironment = ENVIRONMENT;
newMonitor.pDLLName = MONITORDLL;
if (!AddPortMonitor(newMonitor))
Console.WriteLine(String.Format("Could not add port monitor {0}", PORTMONITOR) + Environment.NewLine +
String.Format(WIN32ERROR, Marshal.GetLastWin32Error().ToString()));
else
{
// Monitor already installed -
// log it, and keep going
Console.WriteLine(String.Format("Port monitor {0} already installed.", PORTMONITOR));
monitorAdded = true;
}
//}
//else
//{
// Monitor already installed -
// log it, and keep going
// Console.WriteLine(String.Format("Port monitor {0} already installed.", PORTMONITOR));
// monitorAdded = true;
// }
}
finally
{
Expand Down
4 changes: 2 additions & 2 deletions SetupHelper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
4 changes: 2 additions & 2 deletions clawPDF.Bridge/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
4 changes: 2 additions & 2 deletions clawPDF.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben

[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
[assembly: NeutralResourcesLanguage("")]
4 changes: 2 additions & 2 deletions clawPDF.Mail/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
4 changes: 2 additions & 2 deletions clawPDF.Settings/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben

[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
4 changes: 2 additions & 2 deletions clawPDF.Shared/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben

[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
4 changes: 2 additions & 2 deletions clawPDF.Utilities/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
[assembly: NeutralResourcesLanguage("")]
12 changes: 6 additions & 6 deletions clawPDF.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.168
# Visual Studio Version 16
VisualStudioVersion = 16.0.28922.388
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "clawPDF", "clawPDF\clawPDF.csproj", "{28A624EA-10C1-4178-BB3A-6A2BB6AA159D}"
EndProject
Expand Down Expand Up @@ -154,8 +154,8 @@ Global
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Debug|Win32.Build.0 = Debug|Win32
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Debug|x64.ActiveCfg = Debug|x64
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Debug|x64.Build.0 = Debug|x64
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|Any CPU.ActiveCfg = Release|x64
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|Any CPU.Build.0 = Release|x64
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|Any CPU.ActiveCfg = Release|Win32
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|Any CPU.Build.0 = Release|Win32
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|Win32.ActiveCfg = Release|Win32
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|Win32.Build.0 = Release|Win32
{BAF9FBEC-17EC-4130-ACF4-DCC99F0A0B75}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -166,8 +166,8 @@ Global
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Debug|Win32.Build.0 = Debug|Win32
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Debug|x64.ActiveCfg = Debug|x64
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Debug|x64.Build.0 = Debug|x64
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|Any CPU.ActiveCfg = Release|x64
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|Any CPU.Build.0 = Release|x64
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|Any CPU.ActiveCfg = Release|Win32
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|Any CPU.Build.0 = Release|Win32
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|Win32.ActiveCfg = Release|Win32
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|Win32.Build.0 = Release|Win32
{0437D45F-B95F-4A46-BFCA-5BBD77B8FBBC}.Release|x64.ActiveCfg = Release|x64
Expand Down
4 changes: 2 additions & 2 deletions clawPDF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben

[assembly: AssemblyVersion("0.8.3.0")]
[assembly: AssemblyFileVersion("0.8.3.0")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
[assembly: NeutralResourcesLanguage("")]
8 changes: 6 additions & 2 deletions clawPDF/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Yet another PDF Printer? Yes! This PDF Printer has the intention to be completel

# Changelog

## v0.8.4 (2019.06.11)

- [bugfix] unicode filename support (thx to daooze for bugreport)

## v0.8.3 (2019.05.31)

- [bugfix] starts under System-Account
Expand Down Expand Up @@ -66,7 +70,7 @@ Yet another PDF Printer? Yes! This PDF Printer has the intention to be completel

# Build

- Visual Studio 2017
- Visual Studio 2019


# Third-party
Expand All @@ -79,7 +83,7 @@ Yet another PDF Printer? Yes! This PDF Printer has the intention to be completel
- parts of the ghostscript control: PdfScribe 1.0.6 (https://github.com/stchan/PdfScribe), licensed under AGPL v3 license.
- redirection Port Monitor: clawmon (https://github.com/clawsoftware/clawmon), licensed under GPL v2 license.
- Postscript Printer Drivers: Microsoft Postscript Printer Driver V3 (https://docs.microsoft.com/en-us/windows-hardware/drivers/print/microsoft-postscript-printer-driver), copyright (c) Microsoft Corporation. All rights reserved.
- Postscript and PDF interpreter/renderer: Ghostscript 9.26 (https://www.ghostscript.com/download/gsdnld.html), licensed under AGPL v3 license.
- Postscript and PDF interpreter/renderer: Ghostscript 9.27 (https://www.ghostscript.com/download/gsdnld.html), licensed under AGPL v3 license.
- SystemWrapper 0.25.0.186 (https://github.com/jozefizso/SystemWrapper), licensed under Microsoft Public license.
- ftplib 1.0.1.1 (https://archive.codeplex.com/?p=ftplib), licensed under MIT license.
- DataStorage.dll, licensed under pdfforge Freeware License.
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Catalan (Catalan).ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=ca
LanguageCodePage=1252
LanguageId=0x0003
NativeName=català (català)
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Llicència
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Catalan (Valencian).ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=ca-valencia
LanguageCodePage=1252
LanguageId=0x0803
NativeName=català
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Llicència
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Chinese (Simplified).ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=cn
LanguageCodePage=936
LanguageId=0x0004
NativeName=中文(简体)
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=授权
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Chinese (Traditional).ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=cn
LanguageCodePage=950
LanguageId=0x7C04
NativeName=中文(繁體)
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=授權
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Corsican (France).ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=co-FR
LanguageCodePage=1252
LanguageId=0x0483
NativeName=Corsu (France)
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Licenza
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Czech.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=cs
LanguageCodePage=1250
LanguageId=0x0005
NativeName=čeština
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Licence
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Danish.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=da
LanguageCodePage=1252
LanguageId=0x0006
NativeName=dansk
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Licens
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Dutch.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=nl
LanguageCodePage=1252
LanguageId=0x0013
NativeName=Nederlands
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Licentie
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/English.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=en
LanguageCodePage=1252
LanguageId=0x0409
NativeName=English
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=License
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Estonian.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=et
LanguageCodePage=1257
LanguageId=0x0025
NativeName=eesti
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Litsents
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Finnish.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=fi
LanguageCodePage=1252
LanguageId=0x000B
NativeName=suomi
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Käyttöoikeussopimus
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/French.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=fr
LanguageCodePage=1252
LanguageId=0x000C
NativeName=français
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Licence
Expand Down
2 changes: 1 addition & 1 deletion clawPDF/languages/Gaelic (Scotland).ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ISO2=gla
LanguageCodePage=1252
LanguageId=
NativeName=Gaelic (Scotland)
Version=0.8.3
Version=0.8.4

[clawSoft.clawPDF.Views.AboutWindow]
LicenseButton.Content=Ceadachas
Expand Down
Loading

0 comments on commit 55d9e6d

Please sign in to comment.