Impossible to override the @page setting

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:
<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! :wink:

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

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

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

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