Example required - pdfcompress

37 views
Skip to first unread message

Rick K. M.

unread,
Oct 22, 2012, 2:57:27 PM10/22/12
to origa...@googlegroups.com
Hi All


I'm new to Origami and it's very nice. I'm trying to use Origami to test our defense approach against malicious PDFs. On the cheatsheet is a list of compressions supported (HEX, base85, inflate, LZW and run-length encoding) but I don't see a script such as pdfdecompress to compress my PDF files with different features.

Can someone please provde me an example?

Also, is there any updated documentation with examples?

Thanks.

jena peoples

unread,
Oct 22, 2012, 2:59:12 PM10/22/12
to origa...@googlegroups.com
These are my notes.. 


Add this to the pdf with pico FILENAME.pdf

 

Description: disc:Users:star:Desktop:20080421-200711.png

> 8 0 obj

 <<

> /Type /Action

> /S

> /URI

> /URI (http://www.about.me/jenapeoples)

>> 

endobj

 

 

pdfsh

>>> Action::URI.new("www.about.me/whatever")

<< 

            /IsMap false

            /URI (www.about.me/jenapeoples)

>> 

>>> pdf.onDocumentOpen Action::URI("www.about.me/whatever")

NoMethodError: undefined method `URI' for Origami::Action:Class

            from (irb):12

>>> pdf.onDocumentOpen Action::URI.new("www.about.me/whatever")

Reply all
Reply to author
Forward
0 new messages