Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting a table to fix text to sheet. #28

Open
rduncanpph opened this issue Sep 15, 2021 · 1 comment
Open

Formatting a table to fix text to sheet. #28

rduncanpph opened this issue Sep 15, 2021 · 1 comment

Comments

@rduncanpph
Copy link

Hello,

I have a New-PDFTable where one of the columns has a large amount of text that makes the table expand past the margins and onto another page. Is there way to format tables so that text is smaller and the columns don't exceed the margins?

Thank you

Example

$NewEmployeeInquiriesTable = @(
                    [pscustomobject]@{Completed = (Get-UDElement -Id 'NewEmployeeInquiriesCheckbox1').checked;Task = "Inquire with the new hire’s manager to determine:``n● Where the new hire will be seated.`n● What software packages the new hire will require.`n● If the new hire is an engineer, inquire if they should be given a general-purpose laptop or an engineering laptop for design work requiring enhanced graphics processing. `n● If ERP account(s) are required, create linked request(s) for each ERP access for the ERP technician to configure for the particular RBAC role and provide login information. [Article]`n● If offsite/VPN access will be required. If you do not have access to create a VPN account, create a linked request for an infrastructure technician."}                 
                )

New-PDFTable -DataTable $NewEmployeeInquiriesTable
@PrzemyslawKlys
Copy link
Member

I don't think it's implemented. Probably needs work based on this C# code: https://kb.itextpdf.com/home/it7kb/examples/fit-text-in-cell

Not fun :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants