hexapdf | Versatile PDF creation and manipulation for Ruby | Document Editor library
kandi X-RAY | hexapdf Summary
kandi X-RAY | hexapdf Summary
HexaPDF is a pure Ruby library with an accompanying application for working with PDF files. In short, it allows. HexaPDF was designed with ease of use and performance in mind. It uses lazy loading and lazy computing when possible and tries to produce small PDF files by default.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parses an object .
- Recursively reconstructs a reference .
- Parse the Xref header .
- Validates the fields .
- returns an offset of the xref .
- Wrap the data structure using a PDF object .
- serialize an object into a stream object
- Creates a new object from an object .
- Load an object from an index file .
- Creates a new object .
hexapdf Key Features
hexapdf Examples and Code Snippets
Community Discussions
Trending Discussions on hexapdf
QUESTION
I'm currently in the process of implementing support for AcroForm for HexaPDF. Check boxes are already working fine but radio buttons give me a headache.
I created a simple PDF with two radio buttons. As far as I can tell the resulting PDF contains the needed objects and is structured according to the the PDF 1.7 specification. However, at least in Adobe Reader and Evince clicking on the radio buttons does nothing.
From the PDF:
There is the radio button field (object 6):
...
ANSWER
Answered 2020-Jul-17 at 10:08Turns out the field flags /Ff
were wrongly set due to the age old "off by one" indexing error. The PDF specification uses 1-based indices in the bit descriptions, Ruby uses 0-based indices when accessing individual bits of an integer.
Therefore the "radio" bit was not set and thus the buttons couldn't work because they weren't radio buttons.
After changing the indexing the PDF can now be viewed fine in the viewers.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hexapdf
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page