supery-chen / logseq-plugin-pdf-print

MIT License
8 stars 0 forks source link

Unclear how to use. Broken? #5

Closed sdasda7777 closed 5 months ago

sdasda7777 commented 6 months ago

Hi, it's not clear to me how to use this extension. I can't see the icon that is visible in the GIF. Is it possible updates have broken it?

supery-chen commented 5 months ago

Please check if the printer service of the system is running

image

sdasda7777 commented 5 months ago

I'm not sure there is one, I just want to print to PDF. Is that not what this extension does? I tried sawhney17/logseq-pdf-export, and it technically works, but there is lot of bugs, so I'm looking for an alternative.

supery-chen commented 5 months ago

Run this command in PowerShell: Get-Service -Name Spooler Check if the value of Status in the output is Running.

image


The internal logic of this plugin is very simple, which is to invoke the window.print() method. Therefore, it relies on the operating system's spooler service.

sdasda7777 commented 5 months ago

Hi, actually yeah, I can see the Spooler running.

image

supery-chen commented 5 months ago

Update Logseq to the latest version and update this plugin to the latest version (v0.0.4), then try again.

If it still doesn't work, open the console (Ctrl + Shift + I), try again, check if there are any error messages in the console.

image

sdasda7777 commented 5 months ago

I seem to be up to date but I don't see any error in the console πŸ˜…

supery-chen commented 5 months ago

Can you run window.print() directly in Logseq's console? image

sdasda7777 commented 5 months ago

Yeah, that works, it does show the system print dialog, saves to PDF (though the result is really ugly :/). The main issue seems to be that I just don't see the printer icon:

image

The PDF result:

image

supery-chen commented 5 months ago

πŸ˜‚It seems like I misunderstood your question. Try the following steps

  1. Click Plugins Icon image
  2. Pin this plugin image
  3. OK image
sdasda7777 commented 5 months ago

Ah, I see πŸ˜‚ Thanks and sorry for bothering πŸ˜„