Combining notes, export to PDF

I created a new file for combining a few notes together for exporting to PDF.

![[note1]]
![[note2]]

It works but PDF export has this vertical line on left side from first paragraph all the way down to the end. How do I get rid of this line?

Depending on the theme you are using, there may be a setting for “clean embeds” or “strict embeds”.

SIRvb has a snippet with a bunch of different options:


To just get rid of the left vertical line for embeds, this should do:

body {
  --embed-background: inherit;
  --embed-border-left: none;
  --embed-padding: 0 0 0 0;
  --embed-font-style: inherit;
}

But for export to PDF, we need to wrap it in some more CSS:

@media print {
  body {
    --embed-background: inherit;
    --embed-border-left: none;
    --embed-padding: 0 0 0 0;
    --embed-font-style: inherit;
  }
}
1 Like

@ariehen , thank you for taking the time. Do excuse my lack of technical knowledge. Where do I put these codes?

Ah I’m on ipad. Let me try on Mac.

No problem :smiling_face:

The last link for “CSS snippets” will show you how. Be sure to use a text editor (Notepad++, VSCode, Sublime Text, TextMate, etc) to make sure it’s a properly formatted plain text .css file.

Ah! Yes, this is much easier to do on the mac. Also, export to PDF only works on desktop Obsidian at the moment.

@ariehen, it works. Thanks!

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