How to delete (not just clear) sections of a document?

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
tramhe
User
Posts: 2
Joined: Mon Mar 03, 2014 7:33 pm

How to delete (not just clear) sections of a document?

Post by tramhe »

How to delete a section of a document (e.g., the top half of a page, or a few paragraphs) and have everything below shift up (as occurs with a word processor)?

For example, I receive my VISA statements in PDF format, and I'd like to print them out after deleting sections that are blank or contain unimportant text, thereby reducing the total page count, often by half.

Can this be done with PDF-XChange Editor?
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6901
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: How to delete (not just clear) sections of a document?

Post by Paul - Tracker Supp »

Hi tramhe,

welcome to the forums and thanks for the post.

How to delete a section of a document (e.g., the top half of a page, or a few paragraphs) and have everything below shift up (as occurs with a word processor)?
You have touched on a key point here in the wording of your question, namely (as occurs with a word processor). The fundamental concepts behind a Word Processing document and a PDF are very very different. A word processing document is designed to have flow. Every character is placed relative to those preceding and following it. Because of this, deleting 'chunks' of text will result in the document flowing as you describe.

A PDF is different. By design it was intended to present a consistent view of pages and their content. To achieve this every element on a PDF is located by a coordinate and has no 'knowledge' of any other element in the file. You could probably achieve something similar by copying your content to new pages and placing them in a suitable location but again there will be no 'flow'.

There is nothing that can be done to change this I'm afraid, it is inherent in the PDF format that all items are coordinate based. You will find the same 'issue' wit any PDF software I think you'll find.

I hope that helps.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
thomas e komsta
User
Posts: 28
Joined: Thu Jun 28, 2012 10:39 am

Re: How to delete (not just clear) sections of a document?

Post by thomas e komsta »

> every element on a PDF is located by a coordinate and has no 'knowledge' of any other element in the file.

...which makes it sooooo easy to write code to edit a PDF where the user "sees" and wants to act on groups, blocks, paragraphs, sentences, etc.

Yea, right... :-(
tramhe
User
Posts: 2
Joined: Mon Mar 03, 2014 7:33 pm

Re: How to delete (not just clear) sections of a document?

Post by tramhe »

Thanks for the explanations.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How to delete (not just clear) sections of a document?

Post by Tracker Supp-Stefan »

Hi Tramhe, Thomas,

In fact it's not easy at all, and while most blocks of text on the same page can be recognized as such (even if there are e.g. 10+ actual separate object elements in the PDF structure that would look like a single block of text) - the PDF pages are separate objects themselves so no reflow can be done between pages. As a bonus - that's why it's also so easy to drag and drop pages to reorder them and keep all the content on each page intact - something you can't do with a text processor or not so easily at least!

So it's different formats, each with it's own particular strong sides and limitations.

Regards,
Stefan
Post Reply