Anlage des Repos
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
@ECHO OFF
|
||||
TITLE DIGITAL DATA - Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Batch Script
|
||||
ECHO Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Digital Data
|
||||
ECHO Ludwig-Rinn-Strasse 16
|
||||
ECHO 35452 Heuchelheim
|
||||
ECHO Tel.: 0641 / 202360
|
||||
ECHO E-Mail: info@didalog.de
|
||||
ECHO -
|
||||
ECHO Version 1.0.0.0
|
||||
ECHO Date: 13.08.2015
|
||||
ECHO -
|
||||
ECHO Program Startup %date% at %time:~0,8% oclock, on %computername%.
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ------------------------set variables-------------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
setlocal enableextensions
|
||||
|
||||
SET DIRECTORY="%cd%"
|
||||
SET FILEEXTENSION=*.ps1
|
||||
SET COUNT=0
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ---------------------Program 1 / Script 1---------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (ECHO %%f && set /a count+=1)
|
||||
ECHO -
|
||||
ECHO Found %count% File(s) with File Extension %FILEEXTENSION% in Directory:
|
||||
ECHO %DIRECTORY%.
|
||||
|
||||
ECHO -
|
||||
ECHO Running this/them now, with your permissions!
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (PowerShell.exe -Command "& {Start-Process PowerShell.exe -WindowStyle hidden '-ExecutionPolicy Bypass -File "%%f"'}")
|
||||
|
||||
ECHO -
|
||||
ECHO This Window will close in:
|
||||
#timeout /T 10
|
||||
endlocal
|
||||
exit
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 26.03.2021
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-------------------------------------legend------------------------------------
|
||||
NEW: = Added a new functionality
|
||||
FIX: = Fixed a Issue with existing functionality
|
||||
CHG: = Changed a existing functionality
|
||||
REM: = Removed a functionality
|
||||
-------------------------------------------------------------------------------
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,86 @@
|
||||
cls
|
||||
# Stand: MK // 11.10.2021
|
||||
|
||||
Set-Variable -Scope Global -Name ScriptName -Value (($MyInvocation.MyCommand.Name) -split "\.")[0].ToString()
|
||||
Set-Variable -Scope Global -Name ScriptPath -Value (Split-Path ($MyInvocation.MyCommand.Path))
|
||||
|
||||
#########################################################################
|
||||
############################# KONFIGURATION #############################
|
||||
|
||||
$PDFSourceFile = "$ScriptPath\DigitalData-G-ARE-20224030-aveco.pdf"
|
||||
$XMLSourceFile = "$ScriptPath\ZUGFeRD-invoice.xml"
|
||||
|
||||
$ZUGFeRDTargetFile = "auto"
|
||||
|
||||
#########################################################################
|
||||
|
||||
IF (Test-Path -PathType Leaf "$ScriptPath\GdPicture.NET.14.dll") {
|
||||
Add-Type -Path "$ScriptPath\GdPicture.NET.14.dll" -ErrorAction Stop -Verbose
|
||||
write-host "Die DLL wurde geladen: $ScriptPath\GdPicture.NET.14.dll"
|
||||
}
|
||||
|
||||
ELSE {
|
||||
write-host "Die DLL konnte nicht geladen werden: $ScriptPath\GdPicture.NET.14.dll"
|
||||
}
|
||||
|
||||
$GdPictureImaging = [GdPicture14.GdPictureImaging]::new()
|
||||
$gdPicturePDF = [GdPicture14.GdPicturePDF]::new()
|
||||
$LicenseManager = [GdPicture14.LicenseManager]::new()
|
||||
$LicenseManager.RegisterKEY("21182889975216572111813147150675976632")
|
||||
|
||||
IF ((Test-Path -PathType Leaf $PDFSourceFile) -and (Test-Path -PathType Leaf $XMLSourceFile)) {
|
||||
|
||||
IF (($ZUGFeRDTargetFile -eq $NULL) -or ($ZUGFeRDTargetFile -eq "") -or ($ZUGFeRDTargetFile -eq "auto")) {
|
||||
|
||||
$PDFSourceFilename = (Get-Item -Path $PDFSourceFile).name
|
||||
$PDFSourceFilename = $PDFSourceFilename.Replace(((Get-Item -Path $PDFSourceFile).extension),"")
|
||||
$ZUGFeRDTargetFile = "$ScriptPath\$($PDFSourceFilename)_pdfa3b$((Get-Item -Path $PDFSourceFile).extension)"
|
||||
|
||||
}
|
||||
|
||||
Write-Host "Quelldateien wurden gefunden, fahre fort ..."
|
||||
|
||||
$gdPicturePDF.LoadFromFile($PDFSourceFile, $false)
|
||||
# Embedding xml part.
|
||||
$gdPicturePDF.EmbedFile($XMLSourceFile, "Rechnungsdaten im ZUGFeRD-XML-Format")
|
||||
# Saving as PDF/A-3b.
|
||||
#$gdPicturePDF.ConvertToPDFA($ZUGFeRDTargetFile, "PdfConversionConformance.PDF_A_3b", $true, $true)
|
||||
$gdPicturePDF.ConvertToPDFA($ZUGFeRDTargetFile, [GdPicture14.PdfConversionConformance]::PDF_A_3b, $true, $true)
|
||||
$gdPicturePDF.CloseDocument()
|
||||
|
||||
$gdPicturePDF.LoadFromFile($ZUGFeRDTargetFile, $true)
|
||||
|
||||
# Modifying the metadata.
|
||||
[string]$currentMetadata = $gdPicturePDF.GetMetadata()
|
||||
|
||||
# Add basic ZUGFeRD schema properties.
|
||||
[string]$zugferdMetadata = '<rdf:Description xmlns:zf=\"urn:zugferd:pdfa:CrossIndustryDocument:invoice:2p0#\" rdf:about=\"\">\r\n'
|
||||
$zugferdMetadata += "<zf:ConformanceLevel>BASIC</zf:ConformanceLevel>\r\n"
|
||||
$zugferdMetadata += "<zf:DocumentFileName>zugferd-invoice.xml</zf:DocumentFileName>\r\n"
|
||||
$zugferdMetadata += "<zf:DocumentType>INVOICE</zf:DocumentType>\r\n"
|
||||
$zugferdMetadata += "<zf:Version>2p0</zf:Version>\r\n"
|
||||
$zugferdMetadata += "</rdf:Description>\r\n"
|
||||
# Add PDF/A extension schema description for the ZUGFeRD schema.
|
||||
# Here you should add the proper metadata according to the ZUGFeRD specification.
|
||||
# Example: https:#www.pdflib.com/fileadmin/pdf-knowledge-base/zugferd/ZUGFeRD2_extension_schema.xmp
|
||||
|
||||
$currentMetadata = $currentMetadata.Insert($currentMetadata.IndexOf("<rdf:Description "), $zugferdMetadata)
|
||||
$gdPicturePDF.SetMetadata($currentMetadata)
|
||||
|
||||
$gdPicturePDF.SaveToFile($ZUGFeRDTargetFile)
|
||||
|
||||
write-host "test $($gdPicturePDF.GetStat())"
|
||||
|
||||
}
|
||||
|
||||
ELSE {
|
||||
Write-Host "Quelldatei(en) nicht vollständig bzw. auffindbar!"
|
||||
|
||||
}
|
||||
|
||||
#Remove-Variable * -ErrorAction SilentlyContinue
|
||||
$Error.Clear()
|
||||
|
||||
# Quellen:
|
||||
# https://www.gdpicture.com/blog/generate-zugferd-facturx-electronic-invoices-with-gdpicture/
|
||||
# https://www.gdpicture.com/forum/viewtopic.php?f=30&t=6436
|
||||
BIN
current/Join-ZUGFeRD_Invoice/Join-ZUGFeRD_Invoice.ps1
Normal file
BIN
current/Join-ZUGFeRD_Invoice/Join-ZUGFeRD_Invoice.ps1
Normal file
Binary file not shown.
45
current/Join-ZUGFeRD_Invoice/Join-ZUGFeRD_Invoice_Caller.cmd
Normal file
45
current/Join-ZUGFeRD_Invoice/Join-ZUGFeRD_Invoice_Caller.cmd
Normal file
@@ -0,0 +1,45 @@
|
||||
@ECHO OFF
|
||||
TITLE DIGITAL DATA - Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Batch Script
|
||||
ECHO Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Digital Data
|
||||
ECHO Ludwig-Rinn-Strasse 16
|
||||
ECHO 35452 Heuchelheim
|
||||
ECHO Tel.: 0641 / 202360
|
||||
ECHO E-Mail: info@didalog.de
|
||||
ECHO -
|
||||
ECHO Version 1.0.0.0
|
||||
ECHO Date: 13.08.2015
|
||||
ECHO -
|
||||
ECHO Program Startup %date% at %time:~0,8% oclock, on %computername%.
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ------------------------set variables-------------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
setlocal enableextensions
|
||||
|
||||
SET DIRECTORY="%cd%"
|
||||
SET FILEEXTENSION=*.ps1
|
||||
SET COUNT=0
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ---------------------Program 1 / Script 1---------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (ECHO %%f && set /a count+=1)
|
||||
ECHO -
|
||||
ECHO Found %count% File(s) with File Extension %FILEEXTENSION% in Directory:
|
||||
ECHO %DIRECTORY%.
|
||||
|
||||
ECHO -
|
||||
ECHO Running this/them now, with your permissions!
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (PowerShell.exe -Command "& {Start-Process PowerShell.exe -WindowStyle hidden '-ExecutionPolicy Bypass -File "%%f"'}")
|
||||
|
||||
ECHO -
|
||||
ECHO This Window will close in:
|
||||
#timeout /T 10
|
||||
endlocal
|
||||
exit
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
Version 2.0.0.3 - 15.05.2022
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Removed old messages in code
|
||||
REM: -
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 2.0.0.2 - 02.03.2022
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Logging enhanced
|
||||
REM: -
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 2.0.0.1 - 25.02.2022
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Bugfixing
|
||||
REM: -
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 2.0.0.0 - 21.02.2022
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Complete rework to run as task in future
|
||||
REM: -
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 26.03.2021
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-------------------------------------legend------------------------------------
|
||||
NEW: = Added a new functionality
|
||||
FIX: = Fixed a Issue with existing functionality
|
||||
CHG: = Changed a existing functionality
|
||||
REM: = Removed a functionality
|
||||
-------------------------------------------------------------------------------
|
||||
BIN
current/Join-ZUGFeRD_Invoice/Join-ZUGFeRD_Invoice_Settings.ini
Normal file
BIN
current/Join-ZUGFeRD_Invoice/Join-ZUGFeRD_Invoice_Settings.ini
Normal file
Binary file not shown.
Binary file not shown.
BIN
current/Join-ZUGFeRD_Invoice/Thumbs.db
Normal file
BIN
current/Join-ZUGFeRD_Invoice/Thumbs.db
Normal file
Binary file not shown.
Reference in New Issue
Block a user