frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I built a pure Go PDF library with full XFA support

https://github.com/benedoc-inc/pdfer
1•b-g-d•1h ago

Comments

b-g-d•1h ago
I built a pure Go PDF processing library after repeatedly running into limitations with existing options, especially around XFA forms and encrypted PDFs.

Most PDF libraries I tried fall into one (or more) of these buckets: - Depend on C/C++ via CGO, which complicates builds, cross-compilation, and deployment - Treat XFA as an edge case or don’t support it at all - Struggle with encrypted PDFs that use object streams and incremental updates

XFA is still widely used in government and enterprise workflows (tax forms, applications, compliance docs), but it’s notoriously hard to work with programmatically.

What pdfer does: - pdfer is a zero-dependency, pure Go PDF library that supports: - Full XFA handling: extract, parse, modify, and rebuild XFA forms (including encrypted PDFs) - Automatic handling of both AcroForm and XFA via a unified API - Correct parsing of encrypted PDFs (RC4, AES-128/256) with object streams - Byte-preserving parsing and reconstruction (important for legal/compliance use cases) - Incremental update parsing (PDFs modified multiple times) - Content extraction (text, images, graphics, annotations with positioning) - Document operations (merge, split, rotate, extract pages) - PDF diffing using an LCS-based approach with configurable granularity

Design notes: - Uses a parse-then-decrypt strategy to correctly handle encrypted object streams (similar in spirit to pypdf) - XFA was treated as a first-class feature from the start rather than bolted on - No CGO or external dependencies — easy to embed in Go services and cross-compile

Primary use cases so far have been automated form processing, document comparison/versioning, and PDF handling in backend services where external dependencies are undesirable.

The project is open source: https://github.com/benedoc-inc/pdfer

Happy to hear feedback, especially from others who’ve had to deal with XFA or encrypted PDFs in production.

Show HN: Trinity – a native macOS Neovim app with Finder-style projects

https://scopecreeplabs.com/trinity/
1•kidproquo•2m ago•0 comments

Odin Compilation Speed Tips

https://jakubtomsu.github.io/posts/odin_comp_speed/
1•ibobev•2m ago•0 comments

Everything you need to know about the X Algorithm Update

https://typefully.com/blog/x-algorithm-open-source
1•Jthink•3m ago•0 comments

Delayed Code Generation

https://buttondown.com/jaffray/archive/delayed-code-generation/
1•ibobev•3m ago•0 comments

Ninja: A simple way to do builds (2020)

https://jvns.ca/blog/2020/10/26/ninja--a-simple-way-to-do-builds/
1•enz•4m ago•0 comments

Apple Regains Top Spot in China's Smartphone Market

https://www.macrumors.com/2026/01/20/apple-regains-top-spot-in-china/
1•mgh2•5m ago•0 comments

Predictions for Embodied AI and Robotics in 2026

https://dtsbourg.me/en/articles/predictions-embodied-ai
1•loh•5m ago•0 comments

US citizen says ICE forced him from his home in subfreezing weather

https://www.theguardian.com/us-news/2026/jan/20/citizen-ice-minnesota-thao
2•rawgabbit•6m ago•0 comments

Differential Transformer V2

https://huggingface.co/blog/microsoft/diff-attn-v2
1•ibobev•6m ago•0 comments

'This is sell America' – US dollar tumbles as globe flees US assets

https://www.cnbc.com/2026/01/20/sell-america-trade-dollar-treasury-gold-us-trump-greenland.html
2•MilnerRoute•6m ago•0 comments

UK's China embassy gamble shows changing calculations in divided West

https://www.reuters.com/world/uk/uks-china-embassy-gamble-shows-changing-calculations-divided-wes...
1•DustinEchoes•7m ago•0 comments

Show HN: I turned Hacker News into a radio station

https://tera.fm
1•digi_wares•8m ago•0 comments

Cake_mq Slated for Linux 7.0 to Adapt Sch_cake for Today's Multi-Core World

https://www.phoronix.com/news/Linux-7.0-CAKE-MQ
1•Bender•8m ago•0 comments

Support for More Bluetooth Guitars and Other Hid Changes Ahead of Linux 6.20~7.0

https://www.phoronix.com/news/Linux-7.0-HID-Early-Look
1•Bender•9m ago•0 comments

Show HN: Arch Linux installation lab notes turned into a clean guide

https://www.senotrusov.com/notes/installing-arch-linux/
1•senotrusov•10m ago•0 comments

Blocking-Lock Brownouts Can Escalate from Row-Level to Complete System Outages

https://ardentperf.com/2026/01/19/how-blocking-lock-brownouts-can-escalate-from-row-level-to-comp...
1•tanelpoder•11m ago•0 comments

Show HN: A New Breed of Apps

https://afterdark.so/
1•_pdp_•11m ago•0 comments

Show HN: Create promo videos for your projects with Claude Code

https://github.com/alentodorov/create-promo-video
1•alentodorov•12m ago•0 comments

How to Collect Conference Participants

https://crona.ai/blog/how-to-collect-conference-participants
1•rin_khat•12m ago•0 comments

Show HN: I made an app that analyzes short form content

https://viraliqapp.com/
1•eonn•13m ago•0 comments

k crash course

https://github.com/kparc/kcc
1•tosh•13m ago•0 comments

Microsoft's AI Chief says we'll have intimate AI companions within 5 years

https://www.windowscentral.com/artificial-intelligence/microsoft-ai-chief-intimate-ai-companion-i...
1•thunderbong•14m ago•1 comments

Seagate Shipping 32TB HAMR Hard Drives for Server, NAS, & Surveillance Markets

https://www.servethehome.com/seagate-shipping-32tb-hamr-hard-drives-for-server-nas-surveillance-m...
2•rbanffy•14m ago•0 comments

Ask HN: Which common map projections make Greenland look smaller?

1•jimnotgym•14m ago•0 comments

Weprepyou.com Releases BKSB Practice Tests for Only $1.99

https://weprepyou.com/
1•obayuwj•14m ago•1 comments

Nvidia Arm-based N1X gaming laptops reportedly set to debut this quarter

https://www.tomshardware.com/pc-components/cpus/nvidias-arm-based-n1x-equipped-gaming-laptops-are...
1•rbanffy•16m ago•0 comments

DevOps engineer moving to physical CCTV biz – how to manage the mess?

https://soltra.africa
1•jongi_ct•16m ago•1 comments

Building the first open-source quantum computer using Open Quantum Design (OQD)

https://uwaterloo.ca/news/global-futures/building-worlds-first-open-source-quantum-computer
1•giuliomagnifico•17m ago•0 comments

The Free Trade Titans

https://cnliberalism.org/senate-tariff-response-index
1•DustinEchoes•17m ago•2 comments

Monitoring and engaging in social media conversations during a crisis

https://www.tandfonline.com/doi/full/10.1080/23311975.2015.1084978
1•Caarticles•17m ago•0 comments