After "Generate PDF" option, email content in the PDF file is not visible due to the content of the email is outside the pdf viewerSummaryIn the CSM workspace, the case/tasks have an option to compose an email and there is an option to Generate PDF for the same to attach in the email.When the user views the attached data in the PDF, the draft email content in the PDF file is not visible since to the content of the email is outside the pdf viewer. This happens especially when user uses the table that crosses a certain width. Note: It could also happen with other scenarios. Steps to Reproduce:1. Login to the instance & Navigate to the CSM workspace2. Open an email draft3. Click "Generate PDF", PDF file will be generated and attached to the draft email.4. Open the attached PDF file, the text content is not fully visible in the pdf.InstructionsIdeally you want the email draft to be shrink to fit the PDF, but that is not happening with the PDFGenerationAPI.Product Documentation for it:https://docs.servicenow.com/bundle/vancouver-api-reference/page/app-store/dev_portal/API_reference/PDFGenerationAPIBoth/concept/PDFGenerationAPIBothAPI.html Please try the following:1. Adjust Page Size Dynamically:Especially for the page size issues, this helps. Consider dynamically determining the page size based on the content length. You can calculate the length of the content and choose the page size accordingly. var pageSize = contentLength > threshold ? 'LEDGER' : 'A4'; Adjust the threshold based on your testing to find the optimal point to switch to 'LEDGER' page size. 2. CSS Styles:As the issue is related to the table crossing the borders, try applying CSS styles to limit the width of the table. You can set the maximum width for the table to ensure that it fits within the PDF viewer. table { max-width: 100%;} The above lines of code are mere recommendations. So modify them according to your working requirements.