
The default page size is US Letter (8.5 inches wide by 11 inches long).
#Make pdf images bigger pdf#
The default CSS rules will apply unless you have specified an override in the PDF Stylesheet. Here are some examples of common CSS overrides that you can use in your PDF Stylesheet. To change the PDF stylesheet for a specific space: After you have opened the file, click on the File tab on the menu bar at the top and then select the Optimize PDF option. You need Confluence Administrator global permissions to do this. Go to > General Configuration > PDF Stylesheet.Deselect unwanted images by long pressing on it. Camera option is also available to take new pictures, select them and convert to PDF. To change the PDF stylesheet for the whole site: Select image/images from gallery with + icon. This includes things like paper size, fonts, colours, spacing, and other styling. The PDF Stylesheet allows you to change the appearance of your PDF. Licensed under a Creative Commons Attribution 2.5 Australia License.
In this example we've added the title "Documentation for Confluence", a logo, and an additional title "Contents" above the table of contents.Ĭreated in 2018 by Atlassian. The PDF layout can accept HTML and inline CSS. Here are some examples of things you can do in the PDF Layout.
Choose Edit, then add your customizations in the Title, Header or Footer fields. Go to the space and choose Space tools > Look and Feel from the bottom of the sidebar You'll need Space Admin permissions to do this. To change the PDF layout for a specific space: Choose Edit, then add your customizations in the Title, Header, or Footer fields. You need Confluence Administrator global permissions to do this. Go to > General Configuration > PDF Layout. To change the PDF layout for the whole site: You can include inline CSS in the HTML too. The PDF Layout is where you add a title page, header, or footer to your PDF exports. The PDF layout fields accept HTML. If you're new to CSS, you might want to get help from an Atlassian Solution Partner, or check out a Marketplace app like Scroll PDF Exporter which has a WYSIWYG editor to help you produce beautifully styled PDFs. We provide a number of example customizations to get you started, however Atlassian Support can't help you with styling your PDFs or problems introduced by your customizations. We recommend selecting Include page numbers on the export screen if you need to number your pages. This means that some options, like adding page numbers via CSS, aren't available in PDFs created with Data Center. Confluence Server and Data Center process space exports slightly differently. Changes to the PDF layout only apply to space exports, not to single page exports (via > Export to PDF). There are a few limitations to be aware of: This means you can't mix and match and set some items globally and others at the space level. Space customizations will always completley override any global customizations. You can change just about anything, including the paper size, fonts and colours, spacing, and control behaviours like page breaks.īoth the PDF Layout and PDF Stylesheet can be customized on a space by space basis, or globally for the whole site. The PDF Stylesheet allows you to change the look of the PDF. The PDF Layout allows you to add a title page to your PDF, and add a header and footer to all pages. pic = (image, .When someone exports a space to PDF, Confluence will apply any layout and styling directions it finds in the current space or set globally for the whole site. PdfWriter.GetInstance(document, new FileStream("Chap0101.pdf", FileMode.Create)) The page preview will update, showing the margin added to the PDF pages. Expand the 'Upload' dropdown and select your files. we create a writer that listens to the document You can pick PDF files from Dropbox or Google Drive too.
Here's a picture to illustrate the problem:ĭocument document = new Document(PageSize.LETTER) Is there some way to have the picture use like a Zoom feature to stretch to fit, but also maintain the aspect ratio? There has to be something I'm missing there.
It correctly adds the pictures I want and everything works except that the images are using their native resolution, so if the image is big it's being cropped to fit the page.