Unable to export to pdf

Steps to reproduce

Open Obsidian
made a new note/opened existing note
ctrl+P and type export
click on export to pdf
set include filename as title to off
set page size to A4
set landscape to on
set margin to none
set downscale percent to 1
click on export to pdf
gtk file picker shows up and click save

Expected result

a pdf should be created in the expected folder with the same name as markdown file

Actual result

no pdf file is created inspite of pdf save to notification

Environment

  • Operating system: Fedora 37
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.9
    Installer version: v1.1.9
    Operating system: #1 SMP PREEMPT_DYNAMIC Mon Feb 20 00:22:55 UTC 2023 6.1.12-201.fsync.fc37.x86_64
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: adapt to system
    Community theme: Adwaita v0.2.0
    Snippets enabled: 0
    Restricted mode: off
    Plugins installed: 11
    Plugins enabled: 11
    1: Advanced Tables v0.18.1
    2: Annotator v0.2.10
    3: Copy button for code blocks v0.1.0
    4: Highlightr v1.2.2
    5: Editor Syntax Highlight v0.1.3
    6: Mind Map v1.1.0
    7: Obsidian Git v2.16.0
    8: Templater v1.16.0
    9: Style Settings v1.0.3
    10: Pandoc Plugin v0.4.1
    11: Obsidian Enhancing Export v1.1.8

Additional information

exporting to pdf from obsidian when started with console show this

Debug: Will run Obsidian with the following arguments: 
Debug: Additionally, user gave: --trace-warnings
2023-02-21 08:27:59 Loading main app package /app/resources/obsidian.asar
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 13:57:59.282: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:57:59.282: Failed to load module "pk-gtk-module"
Gtk-Message: 13:57:59.283: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:57:59.283: Failed to load module "pk-gtk-module"
[13:0221/135759.302988:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[13:0221/135759.303031:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
2023-02-21 08:27:59 Checking for update using Github
2023-02-21 08:27:59 Success.
2023-02-21 08:27:59 Latest version is 1.1.9
2023-02-21 08:27:59 App is up to date.
Saving PDF...
Done.
(node:13) UnhandledPromiseRejectionWarning: Error: Invalid print parameters: scale is outside of [0.1 - 2] range
    at g.printToPDF (node:electron/js2c/browser_init:165:6099)
    at IpcMainImpl.<anonymous> (/app/resources/obsidian.asar/main.js:1358:36)
    at IpcMainImpl.emit (node:events:527:28)
    at EventEmitter.<anonymous> (node:electron/js2c/browser_init:165:11237)
    at EventEmitter.emit (node:events:527:28)
(Use `obsidian --trace-warnings ...` to show where the warning was created)
(node:13) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

i have installed the flatpak version and give the neccessary filesystem access as well. I also tried reinstalling obsidian. here is my vault backup on github

I was also able to reproduce this in sandbox vault and also by disabling all community plugins

We don’t make the flatpak and we don’t support it. Does the snap or appimage work?

I just tried it on the appimage version as well and the problem still persists

2023-02-21 11:26:59 Loading main app package /tmp/.mount_Obsidi5f3fB7/resources/obsidian.asar
2023-02-21 11:26:59 Checking for update using Github
2023-02-21 11:27:00 Success.
2023-02-21 11:27:00 Latest version is 1.1.9
2023-02-21 11:27:00 App is up to date.
Saving PDF...
Done.
(node:111479) UnhandledPromiseRejectionWarning: Error: Invalid print parameters: scale is outside of [0.1 - 2] range
    at g.printToPDF (node:electron/js2c/browser_init:165:6099)
    at IpcMainImpl.<anonymous> (/tmp/.mount_Obsidi5f3fB7/resources/obsidian.asar/main.js:1358:36)
    at IpcMainImpl.emit (node:events:527:28)
    at EventEmitter.<anonymous> (node:electron/js2c/browser_init:165:11237)
    at EventEmitter.emit (node:events:527:28)
(Use `obsidian --trace-warnings ...` to show where the warning was created)
(node:111479) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

thanks.

(node:111479) UnhandledPromiseRejectionWarning: Error: Invalid print parameters: scale is outside of [0.1 - 2] range
    at g.printToPDF (node:electron/js2c/browser_init:165:6099)
    at IpcMainImpl.<anonymous> (/tmp/.mount_Obsidi5f3fB7/resources/obsidian.asar/main.js:1358:36)
    at IpcMainImpl.emit (node:events:527:28)
    at EventEmitter.<anonymous> (node:electron/js2c/browser_init:165:11237)
    at EventEmitter.emit (node:events:527:28)

What’s your screen resolution?

1920x1080 17.3 inch

17 inch?
anyway will be fixed in 1.1.15

1 Like

the screen size

Not to sound mean, as I appreciate all the time open source contributors and maintainers put in, I wanted to know how long would it take to officially release 1.1.15

I am sorry but we don’t generally share when release happen.

Ok, I will wait, but till then can you guide me on how can I export the .md files to .pdf as I used vscode’s pdf exporter and it did not follow the obsidian theme. Should I use pandoc or any other tool? I am comfortable with using the command line.

i am not sure if this is the official way, this might be incomplete, this is the screenshot of the process that is started when the export to pdf is clicked

I can’t help you. If you have access to another OS, try it. We believe this is a linux specific problem.

is there an older version of obsidian that works as expected?

I am not sure about that, you can try.

Updated to the newest release and the problem has been fixed, Thank You.

But the Text Font in the exported pdf is not the same as what I have set in my settings,
Is there a way to modify the font style in the exported pdf?

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