Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have PDF book. I haven't sources of it.

I need to get part of it (i.e 1 chapter of it) to another PDF file.

I know that I can print several pages to file, but it isn't enough because the chapter starts in the middle of page. (and I need to shift it to start of the page, if possible)

OS is Ubuntu

share|improve this question
I believe if you google this there are many utility programs out there that will do what you want. – mdpc Jan 15 '13 at 19:21
@mdpc, could you give one of them, that will do it? – RiaD Jan 15 '13 at 19:24
have you tried to look? What have you found? What are your concerns? – mdpc Jan 15 '13 at 19:30
Also, "linux" is not an "OS", any more than "XNU" is an OS, or "the Windows kernel", or "BSD". It is a hugely overgeneralized term that does not really convey a lot of information about what software might be compatible with your system, much less easily installable. When stating what your OS is, please indicate the exact distribution name, version, and processor architecture. – allquixotic Jan 15 '13 at 19:33
@allquixotic, fixed:) – RiaD Jan 15 '13 at 19:34
up vote 3 down vote accepted

If you can't accept having part of the previous chapter on the same page as the start of the next chapter, then the problem devolves into treating each page as an image, and doing image editing until it looks to your satisfaction, then PDFing the images together.

PDFs are not "reflowable", meaning, if you delete some text, the rest of the text won't automatically "move up" like it would in Microsoft Word or other page-based document editors. PDF simply does not work that way, and there is absolutely no way to get it to behave that way and retain 100% fidelity of the input content.

You could use Adobe Acrobat to attempt to "save as" the document into Word format, but this is an extremely imperfect approximation that attempts (sometimes poorly) to define the PDF's contents in terms of MS Word. The resulting document can be very difficult to modify, and may not look anything like the input document, especially once you play with it a little bit.

It also depends on how the input PDF was generated. If it was generated from images, then all the text would have to be OCR'ed to do any modification of it anyway, and OCR has its own problems (extremely inaccurate unless it already knows the font being OCRed and the DPI is very high). If the PDF contains the actual text, the problem gets a little easier, but if you want to retain 100% of the original formatting, graphics, etc., the problem again becomes extremely hard.

I would just live with having part of the previous chapter on the same page, and use one of many tools that exist to extract the pages you want from the PDF. You can use for example pdfedit to extract the pages and insert them into another PDF on Linux. It is very easy to slice out pages from one PDF and put them back into another PDF at an arbitrary place while maintaining 100% fidelity of the content. It's when you want to change the contents within a page that it becomes nearly impossible to do so without losing fidelity or spending a huge amount of time and effort manually editing rasterized images of the PDF pages.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .