pdf-inspector
pdf-inspector copied to clipboard
A collection of PDF::Reader based analysis classes for inspecting PDF output. Mainly used for testing Prawn, but will work with any PDF.
I had to use this gem to analyze some password-protected documents and it required these small changes. The corresponding code in [pdf-reader](https://github.com/yob/pdf-reader) is [here](https://github.com/yob/pdf-reader/blob/8548ce483f79dc215d7648b85cc42dfd01b52302/lib/pdf/reader.rb#L113) and [here](https://github.com/yob/pdf-reader/blob/26ea423c42f673d4579bcd3c1cf63523e8ddc079/lib/pdf/reader/object_hash.rb#L42). Would you mind adding...
When using `PDF::Inspector::Text.analyze(some_pdf).strings`, it does not return strings that were added via ```ruby repeat(1..page_count) do text_box "Hello", at: [0, bounds.top] end ``` Is there a way to get a hold...
If a string contains a superscript char like `m²`, then the `PDF::Inspector::Text.analyze(some_pdf).strings` array will produce 2 strings: ``` m ² ``` instead of a single array entry with `m²`
I'm testing the contents of a PDF generated by PDFKit. When I run Text.analyze_file([MY_PATH]).strings on the file I get an array which holds each character of the PDF content in...
What about a generic inspector that catches everything, to easily compare two PDF ? It could look like this : http://github.com/piglop/pdf-inspector/commit/511617be71eac11b318c52029f18a173feed5f33 Using it with assert_equal produces an unreadable test result,...
First of all, thanks for the work and effort you've put into this great library! ## Bug description We are having an issue with numerals not being read correctly by...
Hey :wave: I believe version 1.3 was released form the commit 1f6e59cb7d56b956783d2cbb0b67db8cd2a4d006, but it was never tagged.