It is currently Sat Sep 26, 2026 4:06 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Deleting Contents in a PDF page
PostPosted: Thu Sep 03, 2015 3:39 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 26, 2014
Posts: 248
GIMP Version: 2.8.14
Operating System: Windows
OS Version: XP Pro
GIMP Experience: New User



Hi,

I have a pdf file in which I wish to remove/cut/delete *some* but not all the contents in that page.

I chose Tools>Selection Tools>Rectangular and I used that tool to create a box around the unwanted content.

I then right-clicked within that rectangular box (selected to delete the contents) and in the drop-down menu chose Edit>Cut and it removed all the contents.

I then saved that page as its own PDF by choosing File>Export and chose pdf as the format and named this page its own name and it exported/saved just that page as its own file edited with the chosen contents removed.

**Issue - when I open that one page newly created/exported/saved pdf file in my pdf reader it displays both a horizontal line across the entire page directly under the end of my wanted content and also vertically down along the left side of the page.

Those lines do NOT appear when I open that pdf page in GIMP so I can’t use the selection tool to delete the lines out.

Thus, I need to figure out how to cut/delete/remove those horizontal and vertical lines left after GIMP removes the unwanted content.

TIA.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Thu Sep 03, 2015 5:15 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14212
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Can you edit the pdf with your pdf reader, or is it only a pdf reader and not an editor?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Thu Sep 03, 2015 6:04 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4557
Location: Canada
I just tried deleting parts of an image and then exported to .pdf and opened .pdf with Microsoft Edge and it looks just like what i have when view in GIMP.
Before exporting i did check/tick the box that says "Convert to bitmaps to vector graphics where possible" it's the 2nd option out of 3 options that's shown just before it tries to save the exported file.
This was done in GIMP 2.8 btw.

I did have to select None before exporting, otherwise i'd get a blank white .pdf

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Thu Sep 03, 2015 9:12 pm  (#4) 
Offline
GimpChat Member

Joined: Feb 26, 2014
Posts: 248
Hi trandoductin,

Thank you for taking time to work on this and for sharing your insight.

I guess I’m missing a step or 2?.

Once I’ve cut the pdf page contents out I don’t want and I’m left with the checkerboard graphics in its place I then choose File>Export and I placed a check-mark next to "Convert to bitmaps to vector graphics where possible" and then named the file as a pdf.

I then exited GIMP version 2.8.2 and opened that one page newly created pdf in my pdf reader (only) and the whole page is now a blank white - it didn’t save the contents of the page I wanted.

I’m not sure where you found the “none” before exporting either - maybe that’s what affecting my result?

Thanks so much.


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Thu Sep 03, 2015 9:17 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4557
Location: Canada
by select None
I mean Menu Select then None. so that you don't have just the deleted area selected.
Image

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Thu Sep 03, 2015 10:52 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
Gimp is not a PDF editor but Gimp can manipulate a PDF. Gimp cannot change the original text or structure because a PDF is a compiled document but Gimp can easily remove an area by applying a fill. Without the original PDF source code you need to cover not cut. A fill will cover original content with a background color and if need be used as a base for new text.

Basic instructions to remove PDF content
  • Open a PDF page.
  • Use the Color Picker to select the background of the area to be removed.
  • Make a selection around the content to be removed (use as large a feather as possible if the background is not consistent).
  • Fill the selection with the (new) foreground color.
  • Select none, Export (bitmap to vector).

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Fri Sep 04, 2015 11:40 am  (#7) 
Offline
GimpChat Member

Joined: Feb 26, 2014
Posts: 248
Hi trandoductin,

Thank you so much for sharing that graphic to clarify.

When I first open the document/graphic, under the Select tab my None is all grayed out with a red X next to it. I held down the Shift+Ctrl+A but it dint change anything.

Might you have any suggestions about how I can change the None from gray to black so I can choose that?


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Fri Sep 04, 2015 12:11 pm  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4557
Location: Canada
eagertolearn wrote:
Hi trandoductin,

Thank you so much for sharing that graphic to clarify.

When I first open the document/graphic, under the Select tab my None is all grayed out with a red X next to it. I held down the Shift+Ctrl+A but it dint change anything.

Might you have any suggestions about how I can change the None from gray to black so I can choose that?


You don't need to select None if you just opened the graphic brand new.
only after you select a rectangle and delete because if you don't, it'll have your rectangle as the selected area.

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Fri Sep 04, 2015 2:51 pm  (#9) 
Offline
GimpChat Member

Joined: Feb 26, 2014
Posts: 248
Starting over...

I chose Tools>Selection Tools>Rectangular and I used that tool to create a box around the unwanted content.

I then right-clicked within that rectangular box (selected to delete the contents) and in the drop-down menu chose Edit>Cut and it removed all the contents.

I then choose the Select tab and choose None.

I then choose File>Export and I place a check-mark next to "Convert to bitmaps to vector graphics where possible" (the 2nd option) and then click Export and name the file as a pdf.

However, as before, when I open the newly created pdf it still displays that line horizontally across the page and the vertical one going down the left side of the page.

I'd like to replace both those lines with just white blank background that's not happening.

I'm not sure what other step(s) I can take to keep about 1/4 of the page with the content I wish to retain but move the other 3/4 of the content without leaving those 2 lines (horizontal and vertical)?

Thanks for all your help.


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Fri Sep 04, 2015 2:58 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4557
Location: Canada
try filling in the deleted rectangle with background color.
Other than that I don't know what else to try...
is it possible for you share your .pdf or .xcf or (if it's not sensitive information).

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Deleting Contents in a PDF page
PostPosted: Fri Sep 04, 2015 10:59 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
Rectangular select the area you want to remove, then drag the color you want into the selected area.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group