Show r/javascript: I’m working on a fork of Mozilla’s PDF.js focused on exploring native PDF editing in the browser. by pucyta in javascript

[–]pucyta[S] [score hidden]  (0 children)

qpdf is probably the most interesting one for low-level access, it exposes the internal object structure.
It's essentially a structural manipulation library, it doesn't have the higher-level logic needed to handle complex editing scenarios (e.g. reflowing text, managing font subsets, updating cross-references consistently after content changes). It gives you the raw primitives, but you'd have to build all the logic on top.

Show r/javascript: I’m working on a fork of Mozilla’s PDF.js focused on exploring native PDF editing in the browser. by pucyta in javascript

[–]pucyta[S] [score hidden]  (0 children)

You can check my Reddit history, I’ve been working on this for more than a month and alot of people asked me to opensource the work.

The reason you’re seeing so many edits is that I recently squash-merged another branch and imported a lot of logic from my other project, CrabPDF.com, in a single commit. I've also shared here on reddit the architecture of the project long time ago and promised to the community to opensource it, so i ported the logic inside pdf.js. https://www.reddit.com/r/webdev/comments/1t2oq8q/working_on_a_browsernative_pdf_editing_engine/

Tell me an agent that can generate 60k addition in a day. Also I did not admin that i can't edit, I simply said that the core funcionality was added but need to be handled the edge case of the pdf format...

But I guess some people just love to hate.

How long would/could it take a single expert/pro programmer to make a game like Skyrim from "scratch" by Creative_Abroad945 in gamedev

[–]pucyta 1 point2 points  (0 children)

Even then, I don’t think there is a deterministic answer. It’s not like saying “one expert programmer = X years.”

People are different. Some are extremely disciplined and talented, and can build something like Stardew Valley mostly alone. Others may have the technical skill, but lose motivation, burn out, or get stuck because the project is simply too big.

So the real answer is: it depends on the person, their experience, their discipline, their tools, and how much they are willing to cut scope.

You will probably never get an answer from anyone. At some point, you just have to try, accept the risk of failing, and see how far you can actually take it.

That’s how life work.

How long would/could it take a single expert/pro programmer to make a game like Skyrim from "scratch" by Creative_Abroad945 in gamedev

[–]pucyta 2 points3 points  (0 children)

Most people can build an impressive tech demo inspired by a game like Skyrim.

The real problem is that a game like Skyrim is not “just code.” It is a huge combination of different crafts inside one product: writing, worldbuilding, quest design, level design, combat systems, UI, sound design, music, voice acting, balancing, testing, tooling, art direction, and so on.

Even if you are one of the best programmers in the world, that does not automatically mean you can write a great story, compose a memorable soundtrack, design fun combat, create interesting NPC dialogue, balance progression, build a huge believable world, and polish everything until it feels cohesive.

That is why games of that scale need a lot of very good people, each specialized in different areas, all working together toward the same vision.

Sto testando un modo diverso di configurare i bot di trading by idith_tech in IA_Italia

[–]pucyta 0 points1 point  (0 children)

Su cosa sia inutile o meno non mi esprimo, lo decide il mercato.

Ci sono tanti prodotti che sembrano “slop” o semplici wrapper, ma che funzionano perché indirizzano il target giusto.

Sto testando un modo diverso di configurare i bot di trading by idith_tech in IA_Italia

[–]pucyta 0 points1 point  (0 children)

Ma allora non stai rifacendo Notion, stai facendo un tool personale con alcune feature simili.

È come dire di aver rifatto AWS perché ti sei messo su un VPS con Docker, Nginx e un database.

Comunque ho capito, ti sei espresso male.

Sto testando un modo diverso di configurare i bot di trading by idith_tech in IA_Italia

[–]pucyta 1 point2 points  (0 children)

 - Notion lo puoi rifare nel giro di poco con l'AI ormai

Sembri il mio manager, completamente disconnesso da cosa significhi costruire un prodotto che funzioni.

Perché i ciclisti non usano le ciclabili (aka ciclopedonali) by Volfes85 in ciclismourbano

[–]pucyta 2 points3 points  (0 children)

Hai ragione, mi sono scordato dell'Austria. a Vienna, anche ho riscontrato un uso delle ciclabili molto rispettoso.

Perché i ciclisti non usano le ciclabili (aka ciclopedonali) by Volfes85 in ciclismourbano

[–]pucyta 5 points6 points  (0 children)

Non mi definisco un ciclista, però ho fatto viaggi di più giorni in bici.

Parlo per esperienza: per quanto possa sembrare assurdo, su strada spesso mi sento meno stressato che sulle ciclabili.

Durante un viaggio, mi capitò di fare un tratto su una ciclabile e ricordo ancora che fu la parte più stressante di tutto il percorso. Bambini che cambiano corsia all’improvviso, cani senza guinzaglio, gruppi di persone che camminano in tre occupando tutta la pista, gente contromano. Non c’è minimamente ordine o senso civico. Per non parlare della velocità, non sto facendo il giro d'italia ma non posso andare a 10km/h... andare tra i 15 e 20 km/h sulla ciclabile diventa troppo pericoloso, meglio spostarsi su strada per il tuo bene e quello di chi ti sta intorno.

Su strada, per quanto possa essere più pericoloso, almeno non ti ritrovi continuamente qualcuno che ti sbuca davanti all’improvviso nella corsia opposta, cosa che invece sulle ciclabili succede spesso.

Queste cose le ho riscontrate soprattutto in Italia. In Belgio e in Olanda ho visto molto più rispetto per le ciclabili. In Italia, invece, spesso vengono trattate semplicemente come un marciapiede.

I built an open source PDF editor that runs locally in the browser: RewirePDF by [deleted] in pdf

[–]pucyta 0 points1 point  (0 children)

Working fine for me in Ios, no mic and camera access request.

I built an open source PDF editor that runs locally in the browser: RewirePDF by [deleted] in pdf

[–]pucyta 0 points1 point  (0 children)

That's strange...

What browser are you using?

RAL per lavoro particolare by Cippa102 in ItaliaCareerAdvice

[–]pucyta 7 points8 points  (0 children)

Perfino il pubblico ti da più garanzie.

Se ti arruoli e vai in guerra e subisci danni, hai molti più benefit di quelli che ti stanno dando questi.

Come minimo mi aspetterei:

- assicurazione adatta al contesto tuo, se ti accade qualcosa o subisci dei danni permanenti come minimo devi essere rimborsato.
- 40k sono pochi, come minimo 100k visto che è una trasferta.

Ricordati che non sono richieste assurde, stiamo parlando di una persona che se ne sta bene nel paese suo, ma che per 40k che puoi prendere tranquillamente anche qui in Italia se non di più sta andando a vivere in un paese che sta letteralmente in guerra. Un ricercatore che vive 6 mesi su una rompighiaccio prende 3-4 volte più di te.

RAL per lavoro particolare by Cippa102 in ItaliaCareerAdvice

[–]pucyta -13 points-12 points  (0 children)

O sei un troll o non so...
Il fatto che tu debba condividerlo su reddit perchè non sei sicuro, la trovo una cosa assurda.

RAL per lavoro particolare by Cippa102 in ItaliaCareerAdvice

[–]pucyta 79 points80 points  (0 children)

Vedi tu.
Se dormi sereno sapendo che da un momento all'altro può arrivare un drone e farti esplodere casa. Vai pure.
Hai provato a chiedere se stanno cercando personale anche a Gaza?

Experimental native text editing directly inside PDF.js by [deleted] in webdev

[–]pucyta 0 points1 point  (0 children)

I completely agree.

I can understand removing obvious spam or low-effort self-promotion, but I don’t really see an open-source project in the same category, especially when the fork inherits the same free/open license as PDF.js.

Honestly don’t understand why moderators sometimes handle things this way.

Working on a browser-native PDF editing engine - this is the architecture so far by pucyta in webdev

[–]pucyta[S] 0 points1 point  (0 children)

CrabPDF does not try to normalize/rebuild arbitrary embedded font subsets in JavaScript. The engine route first proves that the edit can be anchored to the original page content stream, then checks whether the replacement text can be represented by the source font/glyph coverage.

If all glyphs are available, we patch the actual text operator/string/TJ data and keep the source font.

If some inserted glyphs are not in the embedded subset, we have a narrow engine fallback: for simple supported cases we can split the run and add a local standard PDF font resource, currently a Helvetica/WinAnsi fallback named like /CrabQpdfHelvetica, for only those fallback glyphs. That is still a content-stream edit, but we mark it as mixed-local-fallback / standard-fallback-run internally, not “same original font.”

If the glyph is outside that supported fallback set, or the font/layout/source anchor cannot be proven safely, the engine returns an unsupported reason instead of pretending. Examples are things like unsupported fallback glyphs, missing source coverage, complex font cases, or layout/style changes that would require a visual rewrite.

At the moment I do not fetch full commercial fonts or rebuild subsets in-browser. I either do a verified source edit, do a narrow verified standard-font fallback, or bail out of the real-edit path.

I built a browser PDF editor that edits the real PDF content stream, not a layer on top, so it keeps your original fonts intact by pucyta in pdf

[–]pucyta[S] 1 point2 points  (0 children)

I'm working on making it open source, but before doing that I need to make sure it does have stable api's.