Skip to content

PDF direct "Open with NiimBlue" on Android#134

Open
cryotato wants to merge 9 commits into
MultiMote:devfrom
cryotato:main
Open

PDF direct "Open with NiimBlue" on Android#134
cryotato wants to merge 9 commits into
MultiMote:devfrom
cryotato:main

Conversation

@cryotato

@cryotato cryotato commented Jun 2, 2026

Copy link
Copy Markdown

I made a fork that is able to directly open PDFs. This is useful for things like a repairdesk system that automatically creates PDF labels from the browser.

@MultiMote MultiMote left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove trash first

@wallalex0

wallalex0 commented Jun 7, 2026

Copy link
Copy Markdown

Could you also allow this for images and similar file types? (e. g. Text/Link)

Or does it support this already?

Also if possible to register NiimBlues as a PrinterService, to pass content that way too, but that may be indeed out of scope form this PR.

@MultiMote MultiMote changed the base branch from main to dev June 8, 2026 06:08
@cryotato cryotato requested a review from MultiMote June 11, 2026 12:57
@cryotato

Copy link
Copy Markdown
Author

Could you also allow this for images and similar file types? (e. g. Text/Link)

Hii it's very possible but I personally don't have as much use for that feature but if I have time I might give it a shot :)


PdfRenderer.Page page = renderer.openPage(0);

int width = 800;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why exactly 800?

@MultiMote MultiMote left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check comments and restore line endings at EOF please


window.addEventListener("hashchange", loadLabelFromUrl);

// --- PDF INTENT LOGIC START ---

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you extract this to function?

Comment thread src/stores.ts
);

// 2. Automatically save to local storage whenever it changes
automation.subscribe((value) => {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is writablePersisted for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants