EvotecIT / PSWritePDF

PowerShell Module to create, edit, split, merge PDF files on Windows / Linux and MacOS
GNU Affero General Public License v3.0
189 stars 20 forks source link

Add Logo Image As Header #31

Closed yaroslavpaz closed 2 years ago

yaroslavpaz commented 2 years ago

Hi There! When will this function be added: Add Logo Image As Header in the PDF There is currently no way to do it. Thank you! Yaro

PrzemyslawKlys commented 2 years ago

Duplicate of https://github.com/EvotecIT/PSWritePDF/issues/11 right?

yaroslavpaz commented 2 years ago

yeah, with some nuances, that one was requested more than a year ago, no time frame yet?

PrzemyslawKlys commented 2 years ago

Well

New-PDF -MarginLeft 20 { #520 -MarginRight 20 -MarginTop 20 -MarginBottom 20 -PageSize B4 -Rotate {
    New-PDFImage -ImagePath "$PSScriptRoot\Evotec-Logo-600x190.png" -BackgroundColor Red -BackgroundColorOpacity 0.5
    New-PDFText -Text 'Test ', 'Me', 'Oooh' -FontColor BLUE, YELLOW, RED
    New-PDFList {
        New-PDFListItem -Text 'Test'
        New-PDFListItem -Text '2nd'
    }
} -FilePath "$PSScriptRoot\Example09-Images01.pdf" -Show

image

New-PDF -MarginLeft 20 { #520 -MarginRight 20 -MarginTop 20 -MarginBottom 20 -PageSize B4 -Rotate {
    New-PDFImage -ImagePath "$PSScriptRoot\Evotec-Logo-600x190.png" -BackgroundColor Red -BackgroundColorOpacity 0.5
    New-PDFImage -ImagePath "$PSScriptRoot\Evotec-Logo-600x190.png"
    New-PDFText -Text 'Test ', 'Me', 'Oooh' -FontColor BLUE, YELLOW, RED
    New-PDFList {
        New-PDFListItem -Text 'Test'
        New-PDFListItem -Text '2nd'
    }
} -FilePath "$PSScriptRoot\Example09-Images01.pdf" -Show

image

Probably needs some more options for image. Not sure if/when to release it.

yaroslavpaz commented 2 years ago

Wow, That looks beautiful! Can you share me the module or add it to prerelease please?

yaroslavpaz commented 2 years ago

Hi bro, got last message? please I need it bad, thanks in advance, God bless you!

PrzemyslawKlys commented 2 years ago

Will be in next version