Setting PDF Page Size from your DOCX/ODT Template
In Microsoft Word or LibreOffice, you can set the page size for your template, and when generate a PDF with Carbone, the PDF will inherit the page size from the document.
Here's how you can define the page size in Microsoft Word and LibreOffice.
Open your Word template: If you haven't created your document yet, open a new Word document.
Go to the "Layout" or "Page Layout" tab: In the ribbon at the top of Word, look for the "Layout" or "Page Layout" tab. The exact name may vary depending on your version of Word.
Set the page size: In the "Size" group (or a similar group), you'll find options to set the page size. Click on the "Size" option to open a dropdown menu.
Choose a predefined size or set a custom size: You can choose a standard page size (like Letter, A4, Legal, etc.) from the list.
If you need a custom size, select "More Paper Sizes" or "Custom Size" from the dropdown menu. Enter the width and height for your custom page size. Confirm your changes: Click "OK" or "Apply" to confirm the changes to the page size.
Check your document layout: Review your document to ensure that the layout is as you desire with the new page size.
Generate a PDF document with Carbone, it will keep the page size from the template.
![MS Word - Define page size](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2024-02-07-at-10095_l8r9sr.png)
Open your LibreOffice document: If you haven't created your document yet, open a new LibreOffice document.
Go to the "Format" menu: Look for the "Format" menu in the top menu bar.
Select "Page" or "Page Style": Depending on your version of LibreOffice, you might find "Page" or "Page Style" in the "Format" menu.
Set the page size: In the "Page" or "Page Style" dialog, go to the "Page" tab. Choose the desired page size from the "Format" dropdown menu. You can select a standard size or choose "User" and enter custom width and height.
Confirm your changes: Click "OK" to apply the new page size to your document.
Check your document layout: Review your document to ensure that the layout is as you desire with the new page size.
Generate a PDF document with Carbone, it will keep the page size from the template.
![LibreOffice - Define page size](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2024-02-07-at-10162_1q83fep.png)
Here's how you can define the page size in Microsoft Word and LibreOffice.
Define page size in Microsoft Word
Open your Word template: If you haven't created your document yet, open a new Word document.
Go to the "Layout" or "Page Layout" tab: In the ribbon at the top of Word, look for the "Layout" or "Page Layout" tab. The exact name may vary depending on your version of Word.
Set the page size: In the "Size" group (or a similar group), you'll find options to set the page size. Click on the "Size" option to open a dropdown menu.
Choose a predefined size or set a custom size: You can choose a standard page size (like Letter, A4, Legal, etc.) from the list.
If you need a custom size, select "More Paper Sizes" or "Custom Size" from the dropdown menu. Enter the width and height for your custom page size. Confirm your changes: Click "OK" or "Apply" to confirm the changes to the page size.
Check your document layout: Review your document to ensure that the layout is as you desire with the new page size.
Generate a PDF document with Carbone, it will keep the page size from the template.
![MS Word - Define page size](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2024-02-07-at-10095_l8r9sr.png)
Define page size in LibreOffice
Open your LibreOffice document: If you haven't created your document yet, open a new LibreOffice document.
Go to the "Format" menu: Look for the "Format" menu in the top menu bar.
Select "Page" or "Page Style": Depending on your version of LibreOffice, you might find "Page" or "Page Style" in the "Format" menu.
Set the page size: In the "Page" or "Page Style" dialog, go to the "Page" tab. Choose the desired page size from the "Format" dropdown menu. You can select a standard size or choose "User" and enter custom width and height.
Confirm your changes: Click "OK" to apply the new page size to your document.
Check your document layout: Review your document to ensure that the layout is as you desire with the new page size.
Generate a PDF document with Carbone, it will keep the page size from the template.
![LibreOffice - Define page size](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2024-02-07-at-10162_1q83fep.png)
Updated on: 02/07/2024
Thank you!