# Impossible to override the @page setting

**URL:** <https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123>\
**Category:** Support\
**Created:** [28 August 2025 19:16 UTC](https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123 "2025-08-28T19:16:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t0dd](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/t0dd/32/743_2.png) [@t0dd](https://discourse.joplinapp.org/u/t0dd)\
**Post date:** [28 August 2025 19:16 UTC](https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123/1 "2025-08-28T19:16:36Z")

</div>

Linux, Joplin 3.3.13

### Desktop version info

Joplin 3.3.13 (prod, linux)

Device: linux, AMD Ryzen 7 8845HS w/ Radeon 780M Graphics  
Client ID: 9959465eea794e60b1b95760c308ca91  
Sync Version: 3  
Profile Version: 47  
Keychain Supported: No  
Alternative instance ID: -

Revision: 144ed59

Backup: 1.4.3  
Combine notes: 1.2.2  
Conflict Resolution: 1.2.3  
Diff view: 0.2.0  
Extra Markdown editor settings: 1.11.0  
Favorites: 1.3.2  
Freehand Drawing: 3.0.1  
History Panel: 1.0.4  
Hotfolder: 1.2.2  
Import local CSS: 1.0.3  
Inline tags: 1.3.0  
Inline TODO: 1.9.0  
Kminder Mindmap: 0.8.7  
Note list (Preview): 1.1.0  
Note list and sidebar toggle buttons: 1.0.3  
Note Rename: 1.0.0  
Note Tabs: 1.4.0  
Persistent Editor Layout: 2.2.0  
Quick Links: 1.3.2  
Resume Note: 0.4.0  
Save Note as MD: 1.0.2  
Space Indenter: 0.2.6  
Table Formatter Plugin: 1.2.1  
Tagging: 1.0.3  
Templates: 2.4.0  
Whitespacer: 1.0.2  
YesYouKan: 1.0.19

### Sync target

Joplin Cloud

### Editor

Markdown Editor

### What issue do you have?

Joplin will not release its death grip on the @pagepagepagepage setting no matter what you do in your document.

1. Set Joplin to US Letter, Portrait: Options \> Show Advanced Settings \> ...do it there...
2. Create this note:

```plaintext
<style>
    @page { size: a5 portrait; }
</style>

TEST NOTE

```

1. Export it to PDF
2. Look at the dimensions. It will be 8.5in x 11in and the margins are whatever they are.
3. Add `!important` and try again. It will not have an effect.

### Now do the same thing, but exporting to HTML

1. same
2. same
3. Export it to HTML
4. View with Chrome browser
5. `CTRL-P` and save to PDF
6. Examine PDF: the dimensions will be 8.5in x 11in (US Letter, portrait), but the margins get screwed up. (a second bug)

I have some select documents that I have the @page set to something different. I don't want to have to go into Joplin's configurations to change it there. I want the page setting to stay with the note itself. Also, Joplin's configuration settings are limited. For example, it doesn't have an option for a US Half-letter.

Thank you for your attention. Relinquish your death grip! 😉

---

<div class="post-metadata">

**Author:** ![t0dd](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/t0dd/32/743_2.png) [@t0dd](https://discourse.joplinapp.org/u/t0dd)\
**Post date:** [28 August 2025 19:17 UTC](https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123/2 "2025-08-28T19:17:22Z")

</div>

I probably should have opened this in bugzilla. But … maybe I am somehow missing something here.

---

<div class="post-metadata">

**Author:** ![t0dd](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/t0dd/32/743_2.png) [@t0dd](https://discourse.joplinapp.org/u/t0dd)\
**Post date:** [1 September 2025 00:41 UTC](https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123/3 "2025-09-01T00:41:10Z")

</div>

> [@t0dd](#):
>
> bugzilla

An issue was opened. Added screenshots and a proposed solution:

> <https://github.com/laurent22/joplin/issues/13096>
>
> \### Operating system
> 
> Linux
> 
> \### Joplin version
> 
> 3.3.13
> 
> \### Desktop version inf…o
> 
> Joplin 3.3.13 (prod, linux)
> 
> Device: linux, AMD Ryzen 7 8845HS w/ Radeon 780M Graphics
> Client ID: 9959465eea794e60b1b95760c308ca91
> Sync Version: 3
> Profile Version: 47
> Keychain Supported: No
> Alternative instance ID: -
> 
> Revision: 144ed59
> 
> Backup: 1.4.3
> Combine notes: 1.2.2
> Conflict Resolution: 1.2.3
> Diff view: 0.2.0
> Extra Markdown editor settings: 1.11.0
> Favorites: 1.3.2
> Freehand Drawing: 3.0.1
> History Panel: 1.0.4
> Hotfolder: 1.2.2
> Import local CSS: 1.0.3
> Inline tags: 1.3.0
> Inline TODO: 1.9.0
> Kminder Mindmap: 0.8.7
> Note list (Preview): 1.1.0
> Note list and sidebar toggle buttons: 1.0.3
> Note Rename: 1.0.0
> Note Tabs: 1.4.0
> Persistent Editor Layout: 2.2.0
> Quick Links: 1.3.2
> Resume Note: 0.4.0
> Save Note as MD: 1.0.2
> Space Indenter: 0.2.6
> Table Formatter Plugin: 1.2.1
> Tagging: 1.0.3
> Templates: 2.4.0
> Whitespacer: 1.0.2
> YesYouKan: 1.0.19
> 
> \### Current behaviour
> 
> My default PDF / Print page size and orientation is US Letter, Portrait.  
> See that here …
> 
> \<img width="375" height="373" alt="Image" src="https://github.com/user-attachments/assets/80211d6d-cad9-4b15-a238-0ee38daf14ce" /\>
> 
> &nbsp;
> 
> \### But sometimes I like to customize things
> 
> Some notes, I want to print to a different size. I have notes that are expected to be A5 sized. Some are 4in x 6in, etc.
> 
> So, I do this in my markdown:
> 
> \`\`\`markdown
> \<style\>
> @page { size: a5 portrait; }
> \</style\>
> 
> TEST NOTE
> \`\`\`
> 
> If I try to export to PDF (CTRL-E), I find out that Joplin's Options configuration hijacks your CSS. You can't !important the problem out of the way either (@page stuff doesn't allow !important anyway, I don't think). And so I get this …
> 
> \<img width="333" height="448" alt="Image" src="https://github.com/user-attachments/assets/e60316cd-5e41-4133-a9e1-41c2d098b02c" /\>
> 
> I even tried using named pages …
> 
> \`\`\`markdown
> \<style\>
> @page mysize { size: A5 portrait; margin: .75in; }
> #rendered-md { page: mysize; }
> \</style\>
> 
> TEST NOTE
> \`\`\`
> 
> But that doesn't work.
> 
> Does Joplin use a named page for its @page targeting? And if so, can you alert us what it is and where it is set so that we can override it? Or … if it doesn't exist, can you add it? There has to be some non-javascript mechanism to override Joplin's @page configuration.
> 
> Thank you. -t
> 
> P.S. I started this conversation in discourse: https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting
> 
> \---
> 
> \### Expected behaviour
> 
> Here's what it should look like … And I can achieve it, by exporting to HTML and then opening that in a browser, and then print to file. But, that is not what any of us want to do.
> 
> So. 
> 
> \<img width="369" height="224" alt="Image" src="https://github.com/user-attachments/assets/c75ac93f-80ef-4608-b80f-a4fc3271f980" /\>
> 
> \### Logs
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![t0dd](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/t0dd/32/743_2.png) [@t0dd](https://discourse.joplinapp.org/u/t0dd)\
**Post date:** [16 September 2025 18:35 UTC](https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123/4 "2025-09-16T18:35:59Z")

</div>

The bug has been squashed. Should be fixed in the next significant release after v3.4.12.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [16 October 2025 18:36 UTC](https://discourse.joplinapp.org/t/impossible-to-override-the-page-setting/47123/5 "2025-10-16T18:36:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
