You are not logged in.

#1 2012-11-05 10:17:54

thibdb13
Member
From: Mechelen - Belgium
Registered: 2005-10-11
Posts: 114

[Solved] Split pdf file

Hello,

I made a document in odt format and exported it to the pdf format. The size of the pdf is about 24MB. I need to send it via e-mail but my provider allows me to send e-mails with a maximal size of 20MB.
So, I tried to split the pdf document in with several tools pdfshuffler, pdfseparate and pdftk but they all gave the same result: the split file got a size about 22MB instead, no matter if I burst the file to 1 page-files, or try to split it in 2, 3 or more parts.
Anyone any idea how to solve this problem?

Thanks

Last edited by thibdb13 (2012-11-07 10:49:45)

Offline

#2 2012-11-05 11:13:30

drakkan
Member
Registered: 2007-02-24
Posts: 27

Re: [Solved] Split pdf file

try this small utils I wrote some times ago:

http://77.43.75.110/temp/PdfUtils.tar.bz2

compile using (I can send a prebuilt binary for x86_64):

qmake
make

it require poppler and ghostscript (probably already installed) and should be able to split and change pdf quality,

let me know if it works for you

Offline

#3 2012-11-05 22:16:12

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: [Solved] Split pdf file

If every single page "torn off" from whole PDF has almost the same size, probably there's something that repeats on every page... background image? Try pdfdetach or pdfimages to check what PDF contains.

Is original odt size similar to ~20MB? LibreOffice (and Open as well, IIRC) attaches original .odt to PDF, to make it editable, so try turning it off in export options. You can also play with graphics export options there -- say, use jpeg compression and 100 dpi (poor for print, but enough for screen).

Or just make multipart archive and send every part in its own mail, for recipient to reassemble wink

Offline

#4 2012-11-06 02:10:18

WizenedEE
Member
Registered: 2012-03-14
Posts: 8

Re: [Solved] Split pdf file

Check out `split'. You can use it to split one big file into several files, and then reassemble them on the other end with cat. The advantage is that it works for any type of file; the disadvatage is that none of them will be valid pdfs.

Offline

#5 2012-11-06 03:30:41

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [Solved] Split pdf file

Or just send a multi-part compressed file (rar or whatever).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2012-11-06 05:28:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: [Solved] Split pdf file

Or host it someplace and just send a link


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2012-11-07 10:49:17

thibdb13
Member
From: Mechelen - Belgium
Registered: 2005-10-11
Posts: 114

Re: [Solved] Split pdf file

Thanks to all for your interesting answers.
At the end I have applied Briest's recommendation: playing with the graphics export options and it gave the wished result. I lowered the DPI from to 300 to 150 and the result was a pdf file of 3.3 MB.

Offline

Board footer

Powered by FluxBB