UPS is so annoying. The UPS developer's guide is in a 9MB PDF file. When I open it with xpdf(1) I get a (1) page PDF that states I need to download the the latest Adobe crapware to view it. How can I get around this? Why does xpdf even abide? I tried the following gs(1) command hoping it would convert it, but failed with an unrecoverable error (I can paste the error output here if someone thinks it will be helpful): gs -dNOPAUSE -dSAFER -dBATCH -sDEVICE=pdfwrite -sOutputFile=foo.pdf guide.pdf I also tried without the options, NOPAUSE, etc. Any suggestions?
This happens when there are multiple PDFs embedded in a single PDF file. I remember reading a Ghostscript bug about this (could probably find it again if I had the exact error message), but unfortunately Mupdf still doesn't support it. Standard Adobe Reader lets you view but not extract, even. I had to go to a computer lab and use Acrobat on a Mac to pull out the individual files. It's probably not a hard problem to solve, but I don't know of any open-source programs that do this yet. -- Anthony J. Bentley b>
Here is the Ghostscript bug: http://bugs.ghostscript.com/show_bug.cgi?id=690422 From here it looks like you might be able to get it with gs after all. This forum thread claims that Okular can view PDF portfolios as well: http://www.linuxquestions.org/questions/linux-software-2/pdf-portfolio-833748/ -- Anthony J. Bentley
Good research Anthony. That bug describes my situation exactly. The only thing is that I didn't know what the hell a portfolio PDF was until now. Unfortunately, the gs ports is version 8.63 (released 2008-08-01). This bug report/fix happened in April 2009. Shit, now Mr. Schroder is going to be on my ass about patches again. :-P
kili@ posted a ghostscript update to ports@ in October IIRC, you may consult the archives. cheers, Sebastian
Hi, Why are you using xpdf? it's so old and crummy :-). print/epdfview, which uses the poppler library. textproc/mupdf, independent renderer, pretty good. -Bryan.
i have pdfs that mupdf doesn't display properly. --patrick
There is also textproc/zathura.
zathura is really cool! Didn't know about it. But the default key bindings are really weird. I did tried many in the past, but had always to go back to acroread.
All I can say is that I use cwm and don't like interfaces, GTK, gnome, or KDE. I highly agree with Patrick.
I also use cwm, but that doesn't means I completely avoid applications using GTK+ or even Qt, there aren't a whole lot of programs using xlib or xcb directly. You just asked for a way to display your files, my apologies for suggesting that you step outside of your comfort zone. ;-) Good luck, -Bryan.
AFAIK the poppler library is based on xpdf code so the result would be about the same. Best regards, Jona -- Worse is better Richard P. Gabriel
This is cheating, but have you tried throwing it into Google docs? Joachim
Damn Joachim, nice cheat! I can't believe I didn't think of giving this a try. I was hopeful it would work. Unfortunately, I get the same error: "For the best experience, open this PDF portfolio in Acrobat 9 or Adobe Reader 9, or later." I'd also like to mention I tried the pdftops and pdf2ps commands without success. Still get a single page PDF stating the above message. I guess it has to do with this PDF being a portfolio, like Anthony Bentley mentioned. Thanks, Clint
I would be surprised if okular didn't open it. (okular being the KDE viewer)
I don't have KDE so I can't test. But I did find this link: http://forum.kde.org/viewtopic.php?f=20&t=91242 It looks like portfolio PDFs are not supported, although someone there mentions a possible hack. okular apparently uses poppler as the backend. Poppler is a fork of xpdf-3.0, so we're back to square one.
To quote the mailing list motto: Stop whining. Where's the patch? ;-} I can find no bug report in the podofo bugzilla. Best Martin
How are the constituent PDFs stored in the portfolio PDF? Unencrypted? Would it be possible to simply use file carving <http://www.forensicswiki.org/wiki/File_Carving> to extract them? There are unix file carving programs such as scalpel or foremost, but I don't think there is an OpenBSD port. One can try to do things manually with a hex editor of course. Does anyone have a link to a copy of the OP's original offending PDF, so I could try to poke it in this way? (I'm not gonna register w/ UPS just to see that guide.) NB: When googling for the guide, I found this: http://aricmackey.com/2008/04/fail-ups-developers-guide/ Not sure if it still applies. PS I just did some groping around inside some other portfolio PDF file, but it doesn't seem to be just simple concatenation.
|Ken Chen||[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.|
|Hugh Dickins||Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad|
|Bernhard Beck||[PATCH 001/001] usb-serial: Add ThinkOptics WavIT|
|Oleg Nesterov||Re: [PATCH 4/5] don't panic if /sbin/init exits or killed|
|Greg KH||[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically|
|Jonathan del Strother||Re: [PATCH] Fixing path quoting issues|
|Gerrit Pape||[PATCH] fix skipping merge-order test with NO_OPENSSL=1.|
|Linus Torvalds||Re: Implementing branch attributes in git config|
|Johannes Schindelin||Re: Trying to use git-filter-branch to compress history by removing large, obsolet...|
|Gerrit Pape||[PATCH] hooks--update: fix test for properly set up project description file|
|David Miller||Re: [PATCH 04/15] tg3: Preserve LAA when device control is released|
|Jean-Louis Dupond||Re: tg3 driver not advertising 1000mbit|
|Sven Wegener||[PATCH] ipvs: Add missing locking during connection table hashing and unhashing|
|David Miller||Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2|
|Stephen Hemminger||[PATCH 2/2] sky2: fix transmit state on resume|
|Linux Kernel Mailing List||[SCSI] scsi ioctl: fix kernel-doc warning|
|Linux Kernel Mailing List||ALSA: HDA - Correct trivial typos in comments.|
|Linux Kernel Mailing List||i2c-viapro: Add support for SMBus Process Call transactions|
|Linux Kernel Mailing List||i2c: Documentation: upgrading clients HOWTO|
|Linux Kernel Mailing List||[PATCH] fix sysctl_nr_open bugs|
|Die Gestalt||Re: How to re-build openssl with SHA1 support?|
|Edwin Eyan Moragas||Re: managing routes for multiple PPPoE connections|
|Brian Candler||Re: OBSD's perspective on SELinux|
|Jonathan Schleifer||Why is getaddrinfo breaking POSIX?|
|Predrag Punosevac||Re: Kernel developers guide/tutorial|