Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2020, 02:07 PM   #1
MarjaE
Fanatic
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 2200000
Join Date: Jun 2015
Device: Iriver Story HD, Amazon Kindle 5, and Amazon Kindle DX
Removing Background Layers from Pdfs?

Some pdfs include background layers which can obscure foreground text. All this can slow pdf loading, increase file sizes, and interfere with reading. My preferred pdf reading software can't hide layers, and the Kindle Dx's can't either.

I have coordination issues, and use scrolling software, which get interpreted as trackpad or scrollwheel actions. I also have sensory issues, and certain animation, such as smooth scrolling and zooming, can trigger my migraines.

Acrobat Reader isn't an option, since, at least in reponse to my scrolling software, it imposes smooth scrolling.

Pdf Studio Free isn't a great option, since it interprets it as zooming. I can open pdfs in it, hide layers, and print to a new pdf without text info. That suggests a multi-step process with Coherent PDF to blacken text, Pdf Studio Free to export a version without the extra layers, possibly Willus's k2pdfopt to reduce the output size, and either Willus's k2pdfopt or OCRmyPDF to rebuild the text info.

Ghrostscript isn't a great option either. -dFILTERIMAGE -dFILTERVECTOR can remove all images, including the backgrounds, but it sometimes screws with the page layout, and of course it loses any text which had been rendered as an image, as well as other images which didn't get in the way.

GS9 Color Management implies that Ghostscript *can* turn all text black, so that lighter text will be visible, but it doesn't say how. Otherwise Coherent PDF can do that, in an extra step.

There's got to be a better way...
MarjaE is offline   Reply With Quote
Old 06-18-2020, 03:27 PM   #2
phillipgessert
Connoisseur
phillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and grace
 
phillipgessert's Avatar
 
Posts: 70
Karma: 43976
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
If I remember correctly, Adobe Acrobat (not Reader) can separate vector, raster, and text into layers as a preflight routine. I'm not sure if you can then easily trash the non-text layers, but it's at least a start.
phillipgessert is offline   Reply With Quote
Old 06-18-2020, 04:52 PM   #3
MarjaE
Fanatic
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 2200000
Join Date: Jun 2015
Device: Iriver Story HD, Amazon Kindle 5, and Amazon Kindle DX
Due to the scrolling issues, I can't use Adobe Reader. I doubt I would be able to use Adobe Acrobat, and I don't think I can afford it either.
MarjaE is offline   Reply With Quote
Old 06-18-2020, 05:29 PM   #4
phillipgessert
Connoisseur
phillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and gracephillipgessert herds cats with both ease and grace
 
phillipgessert's Avatar
 
Posts: 70
Karma: 43976
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Quote:
Originally Posted by MarjaE View Post
Due to the scrolling issues, I can't use Adobe Reader. I doubt I would be able to use Adobe Acrobat, and I don't think I can afford it either.
Sorry, I didn't really explain what I meant. Acrobat could be used to help trash non-text layers, and you could then save the PDF and read it with the reader of your choice. Moot since you don't have access to Acrobat, though.
phillipgessert is offline   Reply With Quote
Old 06-19-2020, 10:04 PM   #5
MarjaE
Fanatic
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 2200000
Join Date: Jun 2015
Device: Iriver Story HD, Amazon Kindle 5, and Amazon Kindle DX
Workaround:

1. Identify problem layers using PDFStudio Viewer. (Acrobat Reader could also work, depending.)

2. Duplicate the source pdf. Open it with TextEdit. (Another text editor could also work.)

3. Search for OCProperties. This will list numerical codes under OFF, ON, or other settings, with 0 R after each number.

4. Search for Name(x) where x is one of the names of the problem groups from step 1. You should find a list with numbered objects.

5. Note which numbers correspond with which problem groups. Move the corresponding numbers and 0 R from the ON list to the OFF list.

6. Save.

7. Open.

It gets more complicated if you want to track down specific items to move between OFF and ON OCGs.

But... this doesn't require specialized pdf editing software after all.

P.S. The output may not work well with Ghostscript, but it works well with k2pdfopt.

Last edited by MarjaE; 06-19-2020 at 10:11 PM.
MarjaE is offline   Reply With Quote
Reply

Tags
pdf, pdf layers

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove background images from pdfs? perhaps all images? MarjaE PDF 2 10-17-2018 03:30 PM
Background picture or even playing slideshow of background pic for ebooks as feature gdrdr Calibre 7 09-16-2016 05:25 AM
non white background for scanned PDFs? jian1 Onyx Boox 0 08-08-2011 01:16 AM
Removing background images from pdf to epub maurelioc Conversion 5 04-29-2011 11:32 AM
PDFs and Hidden Text Layers aidren enTourage Archive 4 04-14-2010 01:23 PM


All times are GMT -4. The time now is 02:25 AM.


MobileRead.com is a privately owned, operated and funded community.