▲ 5 r/tauri

PDF-X-Ray - A lightweight tool to inspect the DOM of PDF files

Hi everyone! 👋

I want to share a small open-source tool I developed that might be useful to anyone who needs to "disassemble" and understand the internal structure of a PDF file.

PDF X-Ray

The project is called PDF-X-Ray: 🔗 GitHub Repository: https://github.com/DrLoki/PDF-X-Ray

💡 How did this project start?

This tool was born out of a very practical need. I am currently developing GianoReader (repo here), a desktop application designed for reading e-books with side-by-side translation.

When I decided to integrate a new feature to handle and translate PDF files, I clashed with the sheer complexity of their internal structure. To correctly extract and manipulate the text, I needed a tool that allowed me to run an in-depth analysis of the Document Object Model (DOM) of PDFs. Since I couldn't find anything straightforward and specific enough for my needs, I decided to build one from scratch.

🔬 What exactly does PDF-X-Ray do?

Unlike standard PDF readers or generic conversion tools, PDF-X-Ray focuses entirely on the internal structure of the document:

  • DOM Analysis: It allows you to explore the object tree, the nodes, and the relationships that make up the PDF file.
  • Data Stream Inspection: It lets you examine how individual graphical and textual elements are structured under the hood.
  • Transparent and Lightweight: It is a highly targeted, no-frills tool specifically designed for development, debugging, or studying the PDF format.

💬 Feedback and Contributions

The code is completely open and accessible. If you happen to work with PDFs, I invite you to try it out: any feedback, bug reports, or architectural advice is highly appreciated.

If you are working on similar projects or want to check out GianoReader as well, Pull Requests and GitHub Stars (⭐) are always a great way to support open-source development!

Let me know what you think in the comments.

reddit.com
u/DottLoki — 9 days ago

PDF-X-Ray - A lightweight tool to inspect the DOM of PDF files

Hi everyone! 👋

I want to share a small open-source tool I developed that might be useful to anyone who needs to "disassemble" and understand the internal structure of a PDF file.

PDF X-Ray

The project is called PDF-X-Ray: 🔗 GitHub Repository: https://github.com/DrLoki/PDF-X-Ray

💡 How did this project start?

This tool was born out of a very practical need. I am currently developing GianoReader (repo here), a desktop application designed for reading e-books with side-by-side translation.

When I decided to integrate a new feature to handle and translate PDF files, I clashed with the sheer complexity of their internal structure. To correctly extract and manipulate the text, I needed a tool that allowed me to run an in-depth analysis of the Document Object Model (DOM) of PDFs. Since I couldn't find anything straightforward and specific enough for my needs, I decided to build one from scratch.

🔬 What exactly does PDF-X-Ray do?

Unlike standard PDF readers or generic conversion tools, PDF-X-Ray focuses entirely on the internal structure of the document:

  • DOM Analysis: It allows you to explore the object tree, the nodes, and the relationships that make up the PDF file.
  • Data Stream Inspection: It lets you examine how individual graphical and textual elements are structured under the hood.
  • Transparent and Lightweight: It is a highly targeted, no-frills tool specifically designed for development, debugging, or studying the PDF format.

💬 Feedback and Contributions

The code is completely open and accessible. If you happen to work with PDFs, I invite you to try it out: any feedback, bug reports, or architectural advice is highly appreciated.

If you are working on similar projects or want to check out GianoReader as well, Pull Requests and GitHub Stars (⭐) are always a great way to support open-source development!

Let me know what you think in the comments.

reddit.com
u/DottLoki — 9 days ago
▲ 3 r/pdf

PDF-X-Ray - A lightweight tool to inspect the DOM of PDF files

Hi everyone! 👋

I want to share a small open-source tool I developed that might be useful to anyone who needs to "disassemble" and understand the internal structure of a PDF file.

PDF X-Ray

The project is called PDF-X-Ray: 🔗 GitHub Repository: https://github.com/DrLoki/PDF-X-Ray

💡 How did this project start?

This tool was born out of a very practical need. I am currently developing GianoReader (repo here), a desktop application designed for reading e-books with side-by-side translation.

When I decided to integrate a new feature to handle and translate PDF files, I clashed with the sheer complexity of their internal structure. To correctly extract and manipulate the text, I needed a tool that allowed me to run an in-depth analysis of the Document Object Model (DOM) of PDFs. Since I couldn't find anything straightforward and specific enough for my needs, I decided to build one from scratch.

🔬 What exactly does PDF-X-Ray do?

Unlike standard PDF readers or generic conversion tools, PDF-X-Ray focuses entirely on the internal structure of the document:

  • DOM Analysis: It allows you to explore the object tree, the nodes, and the relationships that make up the PDF file.
  • Data Stream Inspection: It lets you examine how individual graphical and textual elements are structured under the hood.
  • Transparent and Lightweight: It is a highly targeted, no-frills tool specifically designed for development, debugging, or studying the PDF format.

💬 Feedback and Contributions

The code is completely open and accessible. If you happen to work with PDFs, I invite you to try it out: any feedback, bug reports, or architectural advice is highly appreciated.

If you are working on similar projects or want to check out GianoReader as well, Pull Requests and GitHub Stars (⭐) are always a great way to support open-source development!

Let me know what you think in the comments.

reddit.com
u/DottLoki — 9 days ago
▲ 1 r/ePub

[OC] I built Giano Reader: A desktop EPUB reader that translates books side-by-side as you read 📖🎭

Hi everyone!

I wanted to share a project I’ve been working on called Giano Reader.

Like many of you, I love reading books in their original language to improve my vocabulary, but I found it frustrating to constantly switch between my e-reader and a translation app. I wanted something that felt like a "dual-language" book but for any EPUB file.

Processing img l6lci5nrzhyg1...

What is Giano Reader? It’s a lightweight desktop app (built with Tauri) that renders your EPUB and generates a side-by-side translation in real-time.

Key Features:

  • 🔗 Synchronized Scrolling: Scroll the original text, and the translation follows. You’ll never lose your place.
  • ⏳ Lazy Translation: It starts translating exactly where you are and expands as you scroll down.
  • 🎨 Native EPUB Feel: Unlike web-based translators, it preserves the original book's styling and formatting.
  • 🌗 6 UI Themes: Includes Dark, Light, Sepia, Monokai, Solarized, and Nord.
  • 📂 Library Management: Scan your folders, manage metadata, and track your reading status.
  • ⚙️ No API Key Required: Works out of the box for personal use.

Why "Giano"? Named after Janus (Giano), the Roman god with two faces. One face for the original text, one for the translation.

You can find the ready-to-use installers for Windows (.msi, .exe), macOS (.dmg), and Linux (.deb, .AppImage) here.

For Calibre users, there is a feature to populate the internal library by indicating the root folder of the Calibre library.

I’m looking for feedback from fellow bookworms! Whether you are learning a new language or just want to tackle a difficult classic in its original prose, I hope this helps.

Check it out on GitHub: [https://github.com/DrLoki/GianoReader]

Note: It’s currently a desktop app (Windows/Linux/macOS) and supports 12 major languages including Italian, English, French, Spanish, German, and more.

Happy reading! 📚

reddit.com
u/DottLoki — 19 days ago
▲ 5 r/tauri

I built Giano Reader: A desktop EPUB reader that translates books side-by-side as you read 📖🎭

Hi everyone!

I wanted to share a project I’ve been working on called Giano Reader.

Like many of you, I love reading books in their original language to improve my vocabulary, but I found it frustrating to constantly switch between my e-reader and a translation app. I wanted something that felt like a "dual-language" book but for any EPUB file.

Processing img l6lci5nrzhyg1...

What is Giano Reader? It’s a lightweight desktop app (built with Tauri) that renders your EPUB and generates a side-by-side translation in real-time.

Key Features:

  • 🔗 Synchronized Scrolling: Scroll the original text, and the translation follows. You’ll never lose your place.
  • ⏳ Lazy Translation: It starts translating exactly where you are and expands as you scroll down.
  • 🎨 Native EPUB Feel: Unlike web-based translators, it preserves the original book's styling and formatting.
  • 🌗 6 UI Themes: Includes Dark, Light, Sepia, Monokai, Solarized, and Nord.
  • 📂 Library Management: Scan your folders, manage metadata, and track your reading status.
  • ⚙️ No API Key Required: Works out of the box for personal use.

Why "Giano"? Named after Janus (Giano), the Roman god with two faces. One face for the original text, one for the translation.

You can find the ready-to-use installers for Windows (.msi, .exe), macOS (.dmg), and Linux (.deb, .AppImage) here.

For Calibre users, there is a feature to populate the internal library by indicating the root folder of the Calibre library.

I’m looking for feedback from fellow bookworms! Whether you are learning a new language or just want to tackle a difficult classic in its original prose, I hope this helps.

Check it out on GitHub: [https://github.com/DrLoki/GianoReader]

Note: It’s currently a desktop app (Windows/Linux/macOS) and supports 12 major languages including Italian, English, French, Spanish, German, and more.

Happy reading! 📚

u/DottLoki — 20 days ago
▲ 32 r/Calibre

[OC] I built Giano Reader: A desktop EPUB reader that translates books side-by-side as you read 📖🎭

Hi everyone!

I wanted to share a project I’ve been working on called Giano Reader.

Like many of you, I love reading books in their original language to improve my vocabulary, but I found it frustrating to constantly switch between my e-reader and a translation app. I wanted something that felt like a "dual-language" book but for any EPUB file.

Processing img l6lci5nrzhyg1...

What is Giano Reader? It’s a lightweight desktop app (built with Tauri) that renders your EPUB and generates a side-by-side translation in real-time.

Key Features:

  • 🔗 Synchronized Scrolling: Scroll the original text, and the translation follows. You’ll never lose your place.
  • ⏳ Lazy Translation: It starts translating exactly where you are and expands as you scroll down.
  • 🎨 Native EPUB Feel: Unlike web-based translators, it preserves the original book's styling and formatting.
  • 🌗 6 UI Themes: Includes Dark, Light, Sepia, Monokai, Solarized, and Nord.
  • 📂 Library Management: Scan your folders, manage metadata, and track your reading status.
  • ⚙️ No API Key Required: Works out of the box for personal use.

Why "Giano"? Named after Janus (Giano), the Roman god with two faces. One face for the original text, one for the translation.

You can find the ready-to-use installers for Windows (.msi, .exe), macOS (.dmg), and Linux (.deb, .AppImage) here.

For Calibre users, there is a feature to populate the internal library by indicating the root folder of the Calibre library.

I’m looking for feedback from fellow bookworms! Whether you are learning a new language or just want to tackle a difficult classic in its original prose, I hope this helps.

Check it out on GitHub: [https://github.com/DrLoki/GianoReader]

Note: It’s currently a desktop app (Windows/Linux/macOS) and supports 12 major languages including Italian, English, French, Spanish, German, and more.

Happy reading! 📚

u/DottLoki — 25 days ago

Hi everyone!

I wanted to share a project I’ve been working on called Giano Reader.

Like many of you, I love reading books in their original language to improve my vocabulary, but I found it frustrating to constantly switch between my e-reader and a translation app. I wanted something that felt like a "dual-language" book but for any EPUB file.

Giano Reader

What is Giano Reader? It’s a lightweight desktop app (built with Tauri) that renders your EPUB and generates a side-by-side translation in real-time.

Key Features:

  • 🔗 Synchronized Scrolling: Scroll the original text, and the translation follows. You’ll never lose your place.
  • ⏳ Lazy Translation: It starts translating exactly where you are and expands as you scroll down.
  • 🎨 Native EPUB Feel: Unlike web-based translators, it preserves the original book's styling and formatting.
  • 🌗 6 UI Themes: Includes Dark, Light, Sepia, Monokai, Solarized, and Nord.
  • 📂 Library Management: Scan your folders, manage metadata, and track your reading status.
  • ⚙️ No API Key Required: Works out of the box for personal use.

Why "Giano"? Named after Janus (Giano), the Roman god with two faces. One face for the original text, one for the translation.

You can find the ready-to-use installers for Windows (.msi, .exe), macOS (.dmg), and Linux (.deb) here.

I’m looking for feedback from fellow bookworms! Whether you are learning a new language or just want to tackle a difficult classic in its original prose, I hope this helps.

Check it out on GitHub: [https://github.com/DrLoki/GianoReader]

Note: It’s currently a desktop app (Windows/Linux/macOS) and supports 12 major languages including Italian, English, French, Spanish, German, and more.

Happy reading! 📚

reddit.com
u/DottLoki — 1 month ago
▲ 1 r/ebooks

Hi everyone!

I wanted to share a project I’ve been working on called Giano Reader.

Like many of you, I love reading books in their original language to improve my vocabulary, but I found it frustrating to constantly switch between my e-reader and a translation app. I wanted something that felt like a "dual-language" book but for any EPUB file.

Giano Reader

What is Giano Reader? It’s a lightweight desktop app (built with Tauri) that renders your EPUB and generates a side-by-side translation in real-time.

Key Features:

  • 🔗 Synchronized Scrolling: Scroll the original text, and the translation follows. You’ll never lose your place.
  • ⏳ Lazy Translation: It starts translating exactly where you are and expands as you scroll down.
  • 🎨 Native EPUB Feel: Unlike web-based translators, it preserves the original book's styling and formatting.
  • 🌗 6 UI Themes: Includes Dark, Light, Sepia, Monokai, Solarized, and Nord.
  • 📂 Library Management: Scan your folders, manage metadata, and track your reading status.
  • ⚙️ No API Key Required: Works out of the box for personal use.

Why "Giano"? Named after Janus (Giano), the Roman god with two faces. One face for the original text, one for the translation.

You can find the ready-to-use installers for Windows (.msi, .exe), macOS (.dmg), and Linux (.deb) here.

I’m looking for feedback from fellow bookworms! Whether you are learning a new language or just want to tackle a difficult classic in its original prose, I hope this helps.

Check it out on GitHub: [https://github.com/DrLoki/GianoReader]

Note: It’s currently a desktop app (Windows/Linux/macOS) and supports 12 major languages including Italian, English, French, Spanish, German, and more.

Happy reading! 📚

reddit.com
u/DottLoki — 1 month ago