diff --git a/PdfSharp-gdi.dll b/PdfSharp-gdi.dll new file mode 100644 index 0000000..762e7c7 Binary files /dev/null and b/PdfSharp-gdi.dll differ diff --git a/PdfSplitt.exe b/PdfSplitt.exe new file mode 100644 index 0000000..4c2f543 Binary files /dev/null and b/PdfSplitt.exe differ diff --git a/Ps1_To_Exe/Portable/Ps1_To_Exe.exe b/Ps1_To_Exe/Portable/Ps1_To_Exe.exe new file mode 100644 index 0000000..843778a Binary files /dev/null and b/Ps1_To_Exe/Portable/Ps1_To_Exe.exe differ diff --git a/Ps1_To_Exe/Portable/Ps1_To_Exe_(x64).exe b/Ps1_To_Exe/Portable/Ps1_To_Exe_(x64).exe new file mode 100644 index 0000000..ce1ac20 Binary files /dev/null and b/Ps1_To_Exe/Portable/Ps1_To_Exe_(x64).exe differ diff --git a/Ps1_To_Exe/Portable/settings b/Ps1_To_Exe/Portable/settings new file mode 100644 index 0000000..9fd205b Binary files /dev/null and b/Ps1_To_Exe/Portable/settings differ diff --git a/Ps1_To_Exe/Ps1_To_Exe_(Installer).exe b/Ps1_To_Exe/Ps1_To_Exe_(Installer).exe new file mode 100644 index 0000000..b2a4ae6 Binary files /dev/null and b/Ps1_To_Exe/Ps1_To_Exe_(Installer).exe differ diff --git a/Ps1_To_Exe/license.txt b/Ps1_To_Exe/license.txt new file mode 100644 index 0000000..3d38f90 --- /dev/null +++ b/Ps1_To_Exe/license.txt @@ -0,0 +1,21 @@ +License Agreement + +Copyright (c) 2018 Fatih Kodak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/exeConversionSavefile.session b/exeConversionSavefile.session new file mode 100644 index 0000000..354eacf Binary files /dev/null and b/exeConversionSavefile.session differ diff --git a/project-SplitPdf.zip b/project-SplitPdf.zip new file mode 100644 index 0000000..f71ecee Binary files /dev/null and b/project-SplitPdf.zip differ diff --git a/splitPdfByBookmarksJoinSameNameAdjecending.ps1 b/splitPdfByBookmarksJoinSameNameAdjecending.ps1 new file mode 100644 index 0000000..52933f6 --- /dev/null +++ b/splitPdfByBookmarksJoinSameNameAdjecending.ps1 @@ -0,0 +1,105 @@ +##[Ps1 To Exe] +## +##NcDBCIWOCzWE8pGP3wFk4Fn9fms5bM7L6IqDwZK36+X8hwvACZcVWURLpi36N0O8S+JfUvEc+tUdWX0= +##Kd3HDZOFADWE8uK1 +##Nc3NCtDXThU= +##Kd3HFJGZHWLWoLaVvnQnhQ== +##LM/RF4eFHHGZ7/K1 +##K8rLFtDXTiS5 +##OsHQCZGeTiiZ4NI= +##OcrLFtDXTiS5 +##LM/BD5WYTiiZ4tI= +##McvWDJ+OTiiZ4tI= +##OMvOC56PFnzN8u+VslQ= +##M9jHFoeYB2Hc8u+VslQ= +##PdrWFpmIG2HcofKIo2QX +##OMfRFJyLFzWE8uK1 +##KsfMAp/KUzWJ0g== +##OsfOAYaPHGbQvbyVvnQX +##LNzNAIWJGmPcoKHc7Do3uAuO +##LNzNAIWJGnvYv7eVvnQX +##M9zLA5mED3nfu77Q7TV64AuzAgg= +##NcDWAYKED3nfu77Q7TV64AuzAgg= +##OMvRB4KDHmHQvbyVvnQX +##P8HPFJGEFzWE8tI= +##KNzDAJWHD2fS8u+Vgw== +##P8HSHYKDCX3N8u+Vgw== +##LNzLEpGeC3fMu77Ro2k3hQ== +##L97HB5mLAnfMu77Ro2k3hQ== +##P8HPCZWEGmaZ7/K1 +##L8/UAdDXTlaDjofG5iZk2Uj8QGN7P/m/vKWs0I6sw8T1+yjYWYooeVBxpTnwDV+pF/cKUJU= +##Kc/BRM3KXhU= +## +## +##fd6a9f26a06ea3bc99616d4851b372ba +param( + [Parameter(Mandatory=$true)] + [ValidateNotNullOrEmpty()] + [ValidateScript({ + if( $_.Extension -ine ".pdf" ){ + throw "The file $($_.FullName) is not a pdf file." + } + if(-not (Test-Path $_.FullName)) { + throw "The file '$($_.FullName)' does not exist!" + } + $true + })] + [System.IO.FileInfo[]]$File + ) + + try{ + Add-Type -LiteralPath ".\PdfSharp-gdi.dll" + } catch { + throw $Error + } + + $DestinationFile = $file | Split-Path -Parent + + if((Test-Path $DestinationFile) -and $DestinationFile.IsReadOnly -and -not $Force) { + throw "Destination file '$($DestinationFile.FullName)' is read only" + } + + [System.IO.DirectoryInfo]$DestinationDirectory = $DestinationFile + if(-not (Test-Path $DestinationDirectory)) { + try { + $DestinationDirectory = New-Item -Path $DestinationDirectory -ItemType Directory -Force:$Force + } catch { + throw "Error in $($MyInvocation.MyCommand.Name). Could not create directory '$($Path)'. $Error[0]" + } + } + + $document = [PdfSharp.Pdf.IO.PdfReader]::Open($file.FullName, [PdfSharp.Pdf.IO.PdfDocumentOpenMode]::Import) + $curentTitle = "" + $i = 1 + Foreach($rootb In $document.Outlines) + { + $nonullable = $rootb.Title + + if ($nonullable) { + Write-Progress -Id 0 "Delar $curentTitle" -PercentComplete ($i/$document.Outlines.count*100) + $i++; + if ((!(("\" + $rootb.Title + ".pdf") -eq $curentTitle )) -AND (!($curentTitle.toString() -eq "")) ) + { + Write-Verbose "---------------------------------------------savepast---------------------------------------------" + $output = Join-Path -Path $DestinationFile -ChildPath $curentTitle + Write-Verbose $output + $currentDoc.save($output);$currentDoc.close + } + if (!(("\" + $rootb.Title + ".pdf") -eq $curentTitle )) + { + Write-Verbose "---------------------------------------------New---------------------------------------------" + $newdocx = New-Object PdfSharp.Pdf.PdfDocument + $newdocx.Version = $document.Version; + $newdocx.Info.Title = $document.Info.Title + $newdocx.Info.Creator = $document.Info.Creator + $currentDoc = $newdocx + } + Write-Verbose "---------------------------------------------addPages---------------------------------------------" + $currentDoc.AddPage($rootb.DestinationPage) + + $curentTitle = "\" + $rootb.Title + ".pdf" + + } + } + Write-Verbose "---------------------------------------------saveToOutput---------------------------------------------" + $newdocx.save($output);$newdocx.close;Remove-Variable newdocx