michaelhayman / origami-pdf Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/origami-pdf
License: GNU Lesser General Public License v3.0
Automatically exported from code.google.com/p/origami-pdf
License: GNU Lesser General Public License v3.0
What steps will reproduce the problem?
1. Launch pdfsh
2. pdf = PDF.read 'corrupt.pdf'
3. The step 2 never stop until pressing Ctrl-C
What is the expected output? What do you see instead?
The PDF.read shall stop with proper exception
What version of the product are you using? On what operating system?
origami-pdf version: 50948d73380e
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
ubuntu 11.10 x86_64
Please provide any additional information below.
Original issue reported on code.google.com by czchen
on 21 Dec 2011 at 6:44
Attachments:
What steps will reproduce the problem?
1. unzip attached file
2. run bug.rb
3. it attempts to create a new PDF file with a JScript stream, ACSII85 filter
used.
4. Origami crashes with a "block in encode" error.
What is the expected output? What do you see instead?
Origami crahes every time if I use ASCII85 filter (for JScript stream or for
attached file).
origami/filters.rb:337:in `block in encode': undefined method `/' for
#<String:0x1674f60> (NoMethodError)
from origami/filters.rb:336:in `times'
from origami/filters.rb:336:in `encode'
from origami/filters.rb:246:in `encode'
from origami/stream.rb:341:in `encode_data'
from origami/stream.rb:246:in `encode!'
from origami/stream.rb:85:in `pre_build'
from origami/pdf.rb:847:in `build'
from origami/pdf.rb:857:in `block in build'
from origami/dictionary.rb:115:in `call'
from origami/dictionary.rb:115:in `block in map!'
from origami/dictionary.rb:114:in `each_pair'
from origami/dictionary.rb:114:in `map!'
from origami/pdf.rb:851:in `build'
from origami/pdf.rb:866:in `block in build'
from origami/pdf.rb:865:in `each_value'
from origami/pdf.rb:865:in `build'
from origami/pdf.rb:878:in `block in physicalize'
from origami/pdf.rb:877:in `each'
from origami/pdf.rb:877:in `physicalize'
from origami/pdf.rb:488:in `compile'
from origami/pdf.rb:241:in `save'
from origami/pdf.rb:260:in `saveas'
from scripts/myscripts/bug.rb:21:in `<main>'
What version of the product are you using? On what operating system?
- Origami downloaded at 05/01/2011
- Ruby 1.9.2-p0 on Windows XP
Please provide any additional information below.
This error appears only with ASCII85 filter, if use any other filter everething
works fine.
Original issue reported on code.google.com by [email protected]
on 20 Jan 2011 at 11:41
Attachments:
Using Ruby 2 irb
> What steps will reproduce the problem?
require 'origami'
pdf = Origami::PDF.read 'tmp/test.pdf'
pdf.encrypt( { 'owner_password' => 'owner', 'user_password' => 'user' })
Encoding::CompatibilityError: incompatible character encodings: UTF-8 and
ASCII-8BIT
from /Users/adan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/origami-1.2.5/lib/origami/encryption.rb:1094:incompute_user_encryption_key' from /Users/adan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/origami-1.2.5/lib/origami/encryption.rb:1293:in
compute_user_password'
from /Users/adan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/origami-1.2.5/lib/origami/encryption.rb:1165:inset_passwords' from /Users/adan/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/origami-1.2.5/lib/origami/encryption.rb:275:in
encrypt'
> What is the expected output? What do you see instead?
No errors and the pdf.encrypted? #=> true
What version of the product are you using? On what operating system?
SO: OSX 10.8.2
Ruby: 2.0.0-p0
origami: 1.2.5
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 7 May 2013 at 6:41
Attachments:
What steps will reproduce the problem?
1.Launch pdfwalker
2.Error during launch
What is the expected output? What do you see instead?
/home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ex
t/kernel_require.rb:54:in `require': superclass mismatch for class Date
(TypeError)
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/date.rb:3:in `<top (required)>'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/psych/deprecated.rb:1:in `<top (required)>'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/psych.rb:12:in `<top (required)>'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/yaml.rb:5:in `<top (required)>'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/gems/origami-1.2.7/bin/gui/config.rb:26:in `<top (required)>'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/gems/origami-1.2.7/bin/gui/walker.rb:50:in `<top (required)>'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/gems/origami-1.2.7/bin/pdfwalker:4:in `<top (required)>'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/bin/pdfwalker:23:in `load'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/bin/pdfwalker:23:in `<main>'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
from /home/mauburtin/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'
What version of the product are you using? On what operating system?
origami 1.2.7
Original issue reported on code.google.com by [email protected]
on 28 May 2015 at 12:20
What steps will reproduce the problem?
1. grep tests folder for 'form', 'xfa' or 'xdp'
What is the expected output? What do you see instead?
I would expect to see some tests that would, at least roughly, show how the
form-related methods are meant to be used.
What version of the product are you using? On what operating system?
1.2.6; Debian 6
Original issue reported on code.google.com by [email protected]
on 12 Jun 2013 at 7:12
What steps will reproduce the problem?
1. installed the JS dependency therubyracer
2. attempted to create a PDF which went to a URL
3. attempt to create a PDF with Javascript
What is the expected output? What do you see instead?
I followed the instructions on the webpages on the 'Getting Started' under the
wiki as well as the example on http://esec-lab.sogeti.com/pages/Origami.
For the URL example, it looked like the action (adding the URL) did not take
place. I save the 'new' PDF and opened with Wireshark running, no request was
made out.
For the Javascript, I here is my input and subsequent output:
>>> pdf.onDocumentOpen Action::Javascript.new('app.alert("Hello!")')
NameError: uninitialized constant Origami::Action::Javascript
from (irb):3
from :0
What version of the product are you using? On what operating system?
*Origami Version --- Welcome to the PDF shell (Origami release 1.2.3) [OpenSSL:
yes, JavaScript: yes]
* RubyGems v1.5.15
*OS: Remnux v3.0
Please provide any additional information below.
I was having issues with a date format specification in the file
'therubyracer-0.9.9.gemspec' however found a workaround. Not sure if that is
the issue, but wanted to address it as it could be part of the problem! I also
ran 'gem update' and 'update_rubygems'
Original issue reported on code.google.com by [email protected]
on 23 Jan 2012 at 9:17
What steps will reproduce the problem?
1. gem install origami
2. virus scanner reports Exploit:Win32/Pdfjsc.Q
3.
What is the expected output? What do you see instead?
I expect to install the gem without triggering the virus scanner
What version of the product are you using? On what operating system?
Windows 7, ruby 1.9.1, origame-1.2.2
Please provide any additional information below.
More details on the exploit:
http://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?Name=Win
32/Pdfjsc
Original issue reported on code.google.com by [email protected]
on 20 Oct 2011 at 7:33
What steps will reproduce the problem?
1. unzip attached file
2. run bug_encrypt.rb
3. it attempts to create a new PDF file with a Flash object, with encryption
4. Origami crashes with a "frozen object" error.
What is the expected output? What do you see instead?
The encryption crashes only in some cases, for example when embedding a SWF
file (>10KB) with specific parameters.
/origami/dictionary.rb:135:in `parent=': can't modify frozen object (TypeError)
from /origami/dictionary.rb:135:in `[]='
from /origami/dictionary.rb:115:in `map!'
from /origami/dictionary.rb:114:in `each_pair'
from /origami/dictionary.rb:114:in `map!'
from /origami/encryption.rb:307:in `build'
from /origami/encryption.rb:322:in `build'
from /origami/encryption.rb:321:in `each'
from /origami/encryption.rb:321:in `build'
... 39 levels...
from /origami/pdf.rb:495:in `compile'
from /origami/pdf.rb:236:in `save'
from /origami/pdf.rb:255:in `saveas'
from bug_encrypt.rb:60
What version of the product are you using? On what operating system?
- Origami updated on the 22/10/2010
- Ruby 1.8.6 on Windows Vista
Please provide any additional information below.
Seems to be the same bug as described on
http://groups.google.com/group/origami-pdf/browse_thread/thread/fc623ed0dbfd7486
Original issue reported on code.google.com by [email protected]
on 23 Oct 2010 at 9:19
Attachments:
What steps will reproduce the problem?
1. open a pdf that contains an xref stream (see attached script and pdf)
What is the expected output? What do you see instead?
It should just parse the xref table, even if it is in an xref stream, when it
is in an xref stream you see:
[info ] Warning: Unable to parse xref table! Xrefs might be stored into an XRef
stream.
What version of the product are you using? On what operating system?
origami 1.2.3, ruby 1.9.2-p0
Please provide any additional information below.
I believe that the cairo library (http://cairographics.org), which is
responsible for doing the heavy lifting of pdf generation for a lot of
different applications does this.
Original issue reported on code.google.com by [email protected]
on 5 Jan 2012 at 3:51
Attachments:
What steps will reproduce the problem?
1. Run pdf2ruby on malicious pdf that uses /Colors <int> where <int> is > then
4
What is the expected output? What do you see instead?
Since this library and associated binaries are tailored to working with
malicious pdfs it would be nice if pdf2ruby would be able to process such files
instead I get:
$ pdf2ruby adobe_flatedecode_predictor02-exploit.pdf[*] Loading document
'adobe_flatedecode_predictor02-exploit.pdf'
[*] Document successfully loaded into Origami
[*] Retrieving all indirect objects...
[*] Retrieving the document Catalog...
[*] Processing the object hierarchy...
origami-1.2.3/lib/origami/stream.rb:367:in `rescue in decode_data': Error while
decoding stream 7 0 R (Origami::InvalidStreamObjectError)
-> [Origami::Filter::PredictorError] Colors must be between 1 and 4
What version of the product are you using? On what operating system?
origami-1.2.3, ubuntu linux, ruby-1.9.2-p0 via rvm
Please provide any additional information below.
Consider the following attachment as an example which is a exploit generated by
the metasploit adobe_flatedecode_predictor02 (with flate and encoding
disabled). Object 7 triggers the CVE 2009-3459 with an integer overflow
(/Colors 1073741838 which is invalid as per the pdf specification).
Also I am really impressed with this gem! Thanks for all the work!
Original issue reported on code.google.com by [email protected]
on 20 Dec 2011 at 10:22
Attachments:
Here is the full "test script" using the latest fetch:
--------------------
hg clone https://code.google.com/p/origami-pdf/
cd origami-pdf/
rake
cd ..
curl 'http://www.ada.gov/hospcombrprt.pdf' -o hospcombrprt.pdf
origami-pdf/bin/pdf2ruby -x hospcombrprt.pdf
mv hospcombrprt.pdf hospcombrprtORIG.pdf
cd hospcombrprt
ruby hospcombrprt.rb # THIS STEP PRODUCES ERRORS
bc hospcombrprt.pdf ../hospcombrprtORIG.pdf || echo FAILED
-----------------------------
EXPECTED:
Two files are identical
ACTUAL:
/Users/williamentriken/Developer/origami-pdf/lib/origami/page.rb:75:in `pages':
Invalid page tree (Origami::InvalidPDFError)
from /Users/williamentriken/Developer/origami-pdf/lib/origami/pdf.rb:689:in `compile'
from /Users/williamentriken/Developer/origami-pdf/lib/origami/pdf.rb:233:in `save'
from hospcombrprt.rb:189:in `<main>'
Original issue reported on code.google.com by [email protected]
on 28 Jun 2014 at 3:59
I am packaging origami for Debian, and having the tests included in the
releases lets us run them both during package build and on the Debian CI
service.
The current build system has a typo that makes the test files not be included
in the releases (except tc_pdf.rb which is listed in test_file). The attached
patch fixes that.
It would be really nice if you could make a new release after applying this
patch.
Original issue reported on code.google.com by [email protected]
on 10 Sep 2014 at 2:23
Attachments:
Using %g causes bad formatting - for example 0.000001 is formatted as 1.0e-06
Original issue reported on code.google.com by [email protected]
on 24 Oct 2012 at 6:12
What steps will reproduce the problem?
1. load a ruby 1.9 >= environment
2. run pdf2ruby
What is the expected output? What do you see instead?
A ruby script using origami that will re-generate the pdf, instead:
rubygems/custom_require.rb:36:in `require': no such file to load -- ftools
(LoadError)
What version of the product are you using? On what operating system?
origami 1.2.3, ubuntu linux, ruby-1.9.2-p0 via rvm
Please provide any additional information below.
The following patch resolves this issue and another bug that cropped up
$ diff -u origami-1.2.3/bin/pdf2ruby origami-1.2.3/bin/pdf2ruby-20111220
--- origami-1.2.3/bin/pdf2ruby 2011-12-20 13:47:34.664618338 -0800
+++ origami-1.2.3/bin/pdf2ruby-20111220 2011-12-20 13:50:14.543605527 -0800
@@ -26,11 +26,11 @@
=end
require 'optparse'
-require 'ftools'
+require 'fileutils'
begin
require 'origami'
-rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../lib"
+rescue LoadError
$: << ORIGAMIDIR
require 'origami'
end
Original issue reported on code.google.com by [email protected]
on 20 Dec 2011 at 9:51
What steps will reproduce the problem?
1. Load .pdf file: pdf = PDF.read 'sample.pdf'
2. Try to edit: pdf.pages[2].edit
3. Error occured:
>>> pdf.pages[2].edit
NoMethodError: undefined method `edit' for nil:NilClass
from (irb):2
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/origami-1.2.3/bin/pdfsh:12:in `<top (required)>'
from C:/Ruby192/bin/pdfsh:19:in `load'
from C:/Ruby192/bin/pdfsh:19:in `<main>'
What is the expected output? What do you see instead?
Possibility to edit page raw contents, but error occured instead.
What version of the product are you using? On what operating system?
Ruby 1.9.2-p290, Origami 1.2.3, Windows 7 Enterprise x64
Please provide any additional information below.
In GettingStarted guide said that "the EDITOR environment variable may need to
be set up", but I don't know how to do that. I'm new to Ruby...
I tried to read all ReadMe-like files in ORIGAMI folder, but there is no
information about setting EDITOR environment variable. Internet searh also
doesn't help, Origami's PDF "origami-cheatsheet-1.0.0-beta2.pdf" too... I
assuming that this feature is un-documented. :(
Can I ask for help here, please?
Thanks in advance.
Kind regards,
Stole
Original issue reported on code.google.com by [email protected]
on 26 Oct 2011 at 12:30
This is not an issue but an idea:
Why not improve Walker by adding the reference number of each object in the
tree view on the left?
For example we could have "5 0 Dictionary" instead of just "Dictionary".
That would be much easier to understand the structure of a PDF when analyzing
references.
Original issue reported on code.google.com by [email protected]
on 9 Sep 2010 at 9:50
Hi,
In step 3 of algorithm 3.2a of [1], the algorithm to computer the intermediate
owner is described as following:
file_encryption_key = AES256 {
data: OE
key: SHA256(owner_password + O[40:48] + U)
mode: CBC, no-padding
IV: 0
}
However, the implementation seems to forget the U key part when calculating
AES256 key. This patch adds self.U to conform [1].
[1] Adobe Supplement to ISO 32000, BaseVersion 1.7, ExtensionLevel 3
(http://www.adobe.com/devnet/pdf/pdf_reference.html)
Original issue reported on code.google.com by czchen
on 26 Apr 2013 at 10:48
Attachments:
hi,
I was porting your ccitt.rb to python, for using in peepdf, I found when
decoding stream with multi rows, the current_color should be initialized as
white in the loop, rather than initialize once.
HTH,
Original issue reported on code.google.com by [email protected]
on 8 Apr 2012 at 3:13
Attachments:
Hi,
PDF filter has abbreviation. For example, FlateDecode can be written as Fl, and
ASCII85Decode can be written as A85. I wrote a patch to support all
abbreviations, please help to see if this patch is suitable to merge into
mainline.
For detail of abbreviation, please see the following link.
http://blog.didierstevens.com/2009/05/11/pdf-filter-abbreviations/
Best regards,
ChangZhuo
Original issue reported on code.google.com by czchen
on 25 Jun 2012 at 3:43
Attachments:
What steps will reproduce the problem?
- 1. install origami (gem install origami)
What version of the product are you using? On what operating system?
- Mac OS 10.9.5 (Mavericks), Avast Mac Security 2015 10.2
Please provide any additional information below.
- mainly detected in samples/exploits
Original issue reported on code.google.com by [email protected]
on 5 Dec 2014 at 9:20
Attachments:
Do not change the operands when to_s is called as it causes debug messages to
break programs in odd ways.
Original issue reported on code.google.com by [email protected]
on 2 Nov 2012 at 4:09
Attachments:
What steps will reproduce the problem?
$ sudo gem install origami
$ curl 'http://www.ada.gov/hospcombrprt.pdf' -o hospcombrprt.pdf
$ pdf2ruby hospcombrprt.pdf
What is the expected output?
Program completes successfully
What do you see instead?
[*] Loading document 'hospcombrprt.pdf'
[*] Document successfully loaded into Origami
[*] Retrieving all indirect objects...
[*] Retrieving the document Catalog...
[*] Processing the object hierarchy...
/Library/Ruby/Gems/2.0.0/gems/origami-1.2.6/bin/pdf2ruby:103:in `objectToRuby':
uninitialized constant Origami::DICT_SPECIAL_TYPES (NameError)
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.6/bin/pdf2ruby:325:in `<top (required)>'
from /usr/bin/pdf2ruby:23:in `load'
from /usr/bin/pdf2ruby:23:in `<main>'
What version of the product are you using? On what operating system?
Mac 10.9.2
pdf2ruby --help does not provide a version. But I installed it on 2014-05-15
from Ruby gems.
Original issue reported on code.google.com by [email protected]
on 16 May 2014 at 3:08
Kindly let me know what I'm missing here.
signed = pdf.sign(cert, key, :method => 'adbe.pkcs7.sha1', :annotation => sigannot, location: "US", :contact => "Foo", :reason => "Bar")
NoMethodError: undefined method []=' for nil:NilClass from ///.rvm/gems/ruby-2.1.6/gems/origami-1.2.7/lib/origami/trailer.rb:152:in
[]='
from ///.rvm/gems/ruby-2.1.6/gems/origami-1.2.7/lib/origami/object.rb:138:in block in define_field_methods' from ///.rvm/gems/ruby-2.1.6/gems/origami-1.2.7/lib/origami/pdf.rb:1072:in
block in rebuild_dummy_xrefs'
from ///.rvm/gems/ruby-2.1.6/gems/origami-1.2.7/lib/origami/pdf.rb:1063:in each' from ///.rvm/gems/ruby-2.1.6/gems/origami-1.2.7/lib/origami/pdf.rb:1063:in
rebuild_dummy_xrefs'
from ///.rvm/gems/ruby-2.1.6/gems/origami-1.2.7/lib/origami/signature.rb:218:in `sign'
This is a great project and in the interest in bringing more activity to the
project, please consider moving the project to GitHub.
This will make it easier for new contributors to get involved, especially for
simple fixes like adding documentation and documenting how to run the /test/*rb
files.
Original issue reported on code.google.com by [email protected]
on 21 Nov 2014 at 2:20
What steps will reproduce the problem?
1.run bug.rb (see attachment - it's modified
"samples\actions\launch\winparams.rb")
What is the expected output? What do you see instead?
Origami can't save obfuscated PDF:
/origami/obfuscation.rb:192:in `to_s': wrong number of arguments(1 for 0)
(ArgumentError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:192:in `block in to_obfuscated_str'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:190:in `gsub!'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:190:in `to_obfuscated_str'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:121:in `block in to_obfuscated_str'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:119:in `each_pair'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:119:in `to_obfuscated_str'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:223:in `to_obfuscated_str'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:1020:in `block in output'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:892:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:892:in `output'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:299:in `save'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/samples/actions/launch/test.rb:22:in `<main>'
What version of the product are you using? On what operating system?
- Origami gem v.1.2.3
- Ruby 1.9.3 on Windows XP
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Feb 2012 at 11:53
Attachments:
1. Read in a linearized document
2. Write out the linearized document to a new file
3. Error
I'm using the latest gem version 1.2.4.
I've tried adding delinearize => false but the resulting PDF is invalid.
I can't attach the file here as it's a commercial document but I'd be happy to
send it via email.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2012 at 12:39
What steps will reproduce the problem?
1. pdf = Origami::PDF.read('144swan.pdf')
2. pdf.decrypt
I get: Origami::EncryptionError: Data must be 16-bytes padded (data size = 5
bytes)
What is the expected output? What do you see instead?
I expect the file to be decrypted, as it works fine with qpdf.
What version of the product are you using? On what operating system?
1.2.5, OS X 10.8
Any hints?
Original issue reported on code.google.com by [email protected]
on 5 Mar 2013 at 9:03
Attachments:
Hi,
before all i need to congratz with you, your job on pdf format was very
explicative! Thanks
Btw I'm triyng to embed the cmd.exe to the pdf but i get always this error:
[line 3]GeneralError:Operation Failed
I'm using adobe reader 9.3.0.
C:\origami-1.0.0-beta1\sources\scripts\embed>embed.rb -i base.pdf -o
ciao.pdf cmd.exe
[info ] ...Start parsing file ...
[info ] ...Reading header...
[info ] ...Parsing revision 1...
[info ] ...Parsing xref table...
[info ] ...Parsing trailer...
[info ] ...End parsing file...
[info ]
PDF file saved as ciao.pdf.
As you see from the script output the creation goes fine but still the
error a mentioned above.
Thanks
Original issue reported on code.google.com by [email protected]
on 6 May 2010 at 5:13
Attachments:
What steps will reproduce the problem?
1. Run antivir script over pdf with active content
2. Open "Clean" pdf in Adobe reader
3. Failure
What is the expected output? What do you see instead?
Expected output: Can open clean file in Adobe Reader
Real output: Opening fails, Reader can't even display pdf.
What version of the product are you using? On what operating system?
Newest script version on Ubuntu 14.04
Original issue reported on code.google.com by [email protected]
on 15 Mar 2015 at 8:50
Attachments:
What steps will reproduce the problem?
See Attached file for test file.
$ pdfsh
Welcome to the PDF shell (Origami release 1.2.6) [OpenSSL: yes, JavaScript: no]
>>> PDF.read('Downloads/HWS-POA.pdf')
[info ] ...Reading header...
[info ] ...Parsing revision 1...
[info ] ...Parsing xref table...
[info ] ...Parsing trailer...
[info ] ...Propagating types...
[info ] Warning: This document contains encrypted data!
ArgumentError: data must not be empty
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:789:in `update'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:789:in `decrypt'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:716:in `decrypt'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:485:in `decrypt!'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:176:in `block (2 levels) in decrypt'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:161:in `each'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:161:in `block in decrypt'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:154:in `each'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:154:in `decrypt'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/parsers/pdf.rb:92:in `parse_finalize'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/parsers/pdf/linear.rb:79:in `parse'
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/pdf.rb:123:in `read'
from (irb):1
from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/bin/pdfsh:12:in `<top (required)>'
from /usr/bin/pdfsh:23:in `load'
from /usr/bin/pdfsh:23:in `<main>'
What is the expected output? What do you see instead?
I'm able to open the file
What version of the product are you using? On what operating system?
OS X Yosemite
Origami 1.2.7
Ruby 2.0.0p481
Original issue reported on code.google.com by [email protected]
on 21 Dec 2014 at 7:34
Attachments:
unshift reverses the operand order - I am fairly sure you don't want to do that
Original issue reported on code.google.com by [email protected]
on 24 Oct 2012 at 5:26
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.