Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Remove blank pages from pdf document

This forum is intended for the discussion around the use of MEPIS in an office setting as distinct from home or indivicual usage. Examples include mail merge, database construction, hardware sharing, advertising, etc..
Message
Author
User avatar
eemaestro
Forum Guide
Forum Guide
Posts: 1010
Joined: Wed Aug 02, 2006 12:12 pm

Re: Remove blank pages from pdf document

#11 Post by eemaestro » Tue Jul 21, 2015 2:08 pm

I installed qpdf just to remove the password from the file I omitted yesterday. After trying to figure out how to use it, I gave up and searched the web.
I looked at this page
http://www.cyberciti.biz/faq/removing-p ... -on-linux/
and used ghostscript (last technique) to remove the password. I verified
it worked by editing the file with pdfshuffler. YAY! It worked. I am going to save the edit-a-page technique until I need to do that.

User avatar
Gordon Cooper
Forum Guide
Forum Guide
Posts: 1996
Joined: Mon Nov 21, 2011 5:50 pm

Re: Remove blank pages from pdf document

#12 Post by Gordon Cooper » Tue Jul 21, 2015 5:43 pm

Jerry3904 wrote:For future reference, we have a nice PDF resource in the MX/antiX Wiki:

http://mepiscommunity.org/wiki/applications/pdf
I see Master PDF listed in the Repos as a pdf editor for Linux, has anyone worked with it?
Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
Primary OS : MX-17.1 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.
Dell9010, MX-17.1, Win7

User avatar
Gaer Boy
Forum Guide
Forum Guide
Posts: 2125
Joined: Sat Jun 06, 2009 6:06 am

Re: Remove blank pages from pdf document

#13 Post by Gaer Boy » Wed Jul 22, 2015 3:09 am

Gordon Cooper wrote:I see Master PDF listed in the Repos as a pdf editor for Linux, has anyone worked with it?
I have it installed and have used it. 'Worked with it' is overstating my experience but it is fairly easy to make alterations to pdf files. Deleting and moving elements on a page is fine but I couldn't use copy/paste to move elements from page to page.

I found the main limitation was that working within elements is not possible. Although I could copy a text element and edit it in Leafpad, I could not paste the amended text. I didn't spend long on this, so that's a provisional result.

As with all pdfs, how much editing you can do depends on how the pdf was constructed. A scanned page is one element and no editing is possible. Converted text seems to be one element per line.

I will work with it a bit more in the next few weeks and update if I find anything new.

Phil

AsRock FM2A88X-ITX+, A8-6500, 8GB, 120GB Samsung SSD (GPT), 1TB HDD (MBR), MX-17.1
Lenovo Thinkpad X220, dual-core i5, 3MB, 320GB Hitachi HDD, Win7, MX-17.1

User avatar
Gordon Cooper
Forum Guide
Forum Guide
Posts: 1996
Joined: Mon Nov 21, 2011 5:50 pm

Re: Remove blank pages from pdf document

#14 Post by Gordon Cooper » Wed Jul 22, 2015 3:42 am

Thanks Phil. The repos version is 3.1 but 3.2 is available. Have read much of the support information but am confused about registration. Seems that it is free for non-commercial use, but registration for private users is not clearly spelled out. One part of their documentation talks about a 30 day trial period. Will look at it again tomorrow, am looking for something to help with changes for the MX14 Manual..
Gordon.
Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
Primary OS : MX-17.1 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.
Dell9010, MX-17.1, Win7

User avatar
Gaer Boy
Forum Guide
Forum Guide
Posts: 2125
Joined: Sat Jun 06, 2009 6:06 am

Re: Remove blank pages from pdf document

#15 Post by Gaer Boy » Wed Jul 22, 2015 5:14 am

Looking again at this, editing text elements is fairly easy, although the command sequence is not obvious. I haven't time to work out whether complex editing of multi-line text is feasible.

AsRock FM2A88X-ITX+, A8-6500, 8GB, 120GB Samsung SSD (GPT), 1TB HDD (MBR), MX-17.1
Lenovo Thinkpad X220, dual-core i5, 3MB, 320GB Hitachi HDD, Win7, MX-17.1

User avatar
eemaestro
Forum Guide
Forum Guide
Posts: 1010
Joined: Wed Aug 02, 2006 12:12 pm

Re: Remove blank pages from pdf document

#16 Post by eemaestro » Wed Jul 22, 2015 10:51 am

If you'd be so kind as to post the command sequence to edit elements on a page, I'll install give masterpdf a whirl. It's not in the MEPIS repo. Where would I find it?

Code: Select all

$ apt-cache search pdf >temp
jon@mepis1:~$ grep -i master temp
fragmaster - use of psfrag constructs with pdflatex

User avatar
eemaestro
Forum Guide
Forum Guide
Posts: 1010
Joined: Wed Aug 02, 2006 12:12 pm

Re: Remove blank pages from pdf document

#17 Post by eemaestro » Wed Jul 22, 2015 10:53 am

Gaer Boy wrote: I haven't time to work out whether complex editing of multi-line text is feasible.
By this, do you mean rewriting a sentence in an existing paragraph of text, for instance?

User avatar
Gaer Boy
Forum Guide
Forum Guide
Posts: 2125
Joined: Sat Jun 06, 2009 6:06 am

Re: Remove blank pages from pdf document

#18 Post by Gaer Boy » Wed Jul 22, 2015 12:27 pm

eemaestro wrote:If you'd be so kind as to post the command sequence to edit elements on a page, I'll install give masterpdf a whirl. It's not in the MEPIS repo. Where would I find it?
Gaer Boy wrote: I haven't time to work out whether complex editing of multi-line text is feasible.
By this, do you mean rewriting a sentence in an existing paragraph of text, for instance?
It should be in the main repo - the package is master-pdf-editor.

For most PDFs with elements created from text programs, each line of text is a separate element. Moving an element or editing the text in an element is fairly easy, so that means editing a single line of text is OK. If the line is part of a paragraph, the text in adjacent lines will not flow. It may be that a combination of editing and moving could be used to rearrange the text, but I haven't tried that.

I wrote that the command sequence was not obvious. That's true, but I've found that trying to use the menus or toolbar is unnecessary. Simply double-click on a line of text and edit it - it's easier than using the Edit Text button. For images and other elements, use the Edit button. How much you can edit is dependent on the structure of the PDF.

I edited two text elements in a 2-page PDF today. It's a mixture of text and images. The original file is 65.9K and the edited file is 429K. You'll be pleased to know that master-pdf automatically created a backup copy of the original.

Phil

AsRock FM2A88X-ITX+, A8-6500, 8GB, 120GB Samsung SSD (GPT), 1TB HDD (MBR), MX-17.1
Lenovo Thinkpad X220, dual-core i5, 3MB, 320GB Hitachi HDD, Win7, MX-17.1

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 22420
Joined: Wed Jul 19, 2006 6:13 am

Re: Remove blank pages from pdf document

#19 Post by Jerry3904 » Wed Jul 22, 2015 1:19 pm

Would you be willing to edit the PDF Wiki entry accordingly?
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
Gaer Boy
Forum Guide
Forum Guide
Posts: 2125
Joined: Sat Jun 06, 2009 6:06 am

Re: Remove blank pages from pdf document

#20 Post by Gaer Boy » Wed Jul 22, 2015 5:01 pm

Jerry3904 wrote:Would you be willing to edit the PDF Wiki entry accordingly?
OK. It will probably be early next week - I'm out tomorrow and Friday and in London Sunday. Saturday is a key day in the Tour de France, so that's 4 hours viewing.

Phil

AsRock FM2A88X-ITX+, A8-6500, 8GB, 120GB Samsung SSD (GPT), 1TB HDD (MBR), MX-17.1
Lenovo Thinkpad X220, dual-core i5, 3MB, 320GB Hitachi HDD, Win7, MX-17.1

Post Reply

Return to “Office”