How to remove background from a PDF file?

  • Thread starter Buffu
  • Start date
  • Tags
    File Pdf
In summary: The colour of the page itself is dark yellow. It is not a decoration.PDFs can be saved using layers so that would be the perfect scenario.Is the background a decorative feature under the text (like in a powerpoint)?Or is it the background of a scanned image?Yes my printer has a black and white option but it is not much helpful. I tried printing "as an image" but got same results.Are you using Acrobat Reader on Windows?Or something else?
  • #1
Buffu
849
146
I have a PDF file which has a weird dark yellowish background that renders it unreadable when printed in grayscale. I am not interested in the yellow background I just want black text from the PDF.

I want to do this for a quite a large number of PDFs so I want a process that is either automated or requires little effort ?

I tried converting PDF to images then extracting text from them but this requires large amount of effort as I have to do that page by page. Is there a better way to do this ?
 
Computer science news on Phys.org
  • #2
Try using photo processing software . Use the controls to fade out the background colours and enhance the text colours .
 
  • #3
Nidum said:
Try using photo processing software .
Softwares like GIMP, Photoshop ?
 
  • #4
Buffu said:
Softwares like GIMP, Photoshop ?

Possibly, InDesign is another viable option. Maybe the latter is your best bet if you have access to it.

Nidum said:
Try using photo processing software . Use the controls to fade out the background colours and enhance the text colours .

If I'm not mistaken PDFs can be saved using layers so that would be the perfect scenario.
 
  • #5
Is the background a decorative feature under the text (like in a powerpoint)?
Or is it the background of a scanned image?

Does your printer have an option to print in "Black and white"?
Does printing "as an image" help?
 
  • #6
robphy said:
Is the background a decorative feature under the text (like in a powerpoint)?
Or is it the background of a scanned image?

Does your printer have an option to print in "Black and white"?
Does printing "as an image" help?
The colour of the page itself is dark yellow. It is not a decoration.
Yes my printer has a black and white option but it is not much helpful. I tried printing "as an image" but got same results.
 
  • #7
Are you using Acrobat Reader on Windows?
Or something else?

As mentioned above, does your document have "layers"?
I wonder if there is an option to somehow "print without using yellow ink" (possibly in an advanced option when printing).

Can you provide a small example pdf?
 
  • #8
You could try Krita and open the pdf as a layered image
Then select a layer and do some colour correction, brightness-contrast shift, or something from the filter menu
Then select the next layer and in filters click apply filter again
Or use the macro record option to record the steps you take and apply the macro to each layer in turn.

Possibly there is some terminal scripting you can do to batch process layers. I know nothing about that.

edit add: re scripting: likewise you can open the pdf in something like gimp as multiple images and do a scripted batch processing of them and then shift the images in turn into one image as layers and export/save that as a pdf.

(I seem to remember that PhotoImpact (16?) allows for batch processing of layers(don't know if you can save as pdf in it though))

In Karta similarly save the layered image as a pdf.

Because a pdf is a stack of images, be careful when saving as depending on how you save whether it is lossless or not. Best idea is to always keep the originals and don't overwrite them.
 
Last edited:
  • #9
robphy said:
Are you using Acrobat Reader on Windows?
Or something else?

As mentioned above, does your document have "layers"?

I am using Acrobat DC professional edition.
I don't know how to check if my document have layers or not.

robphy said:
I wonder if there is an option to somehow "print without using yellow ink" (possibly in an advanced option when printing).

Can you provide a small example pdf?

I don't see an option for printing without an specific ink.

@john101 I used Krita and GIMP but I don't know what color correction I need to do in them, learning curve is high in these software.

Anyhow I used Inkscape to solve my problem.
This is what I did, maybe of some use to someone.

Steps :-
1) :- Convert the PDF to JPG or PNG(http://pdftoimage.com/). Simply importing a PDF in Inkscape is doable but this method does not work with it. (Please let me know if you know)
2):- Drag the Image in the on a new inkscape document. Select the option that says "Import image with default dimensions"(something like this).
3) :- Then go the path > trace bitmap.
sacac.png


4) :- Then just select the 'Ok' option and wait for the magic to happen. Default settings work for me but you might have to adjust them.
This step weirdly does not work if the PDF is directly imported in Inkscape.
asdas.PNG


5) :- Then convert it back to PDF. http://jpg2pdf.com/

I tried it with some different types of images and it does not work properly with all kinds of images.
 

What tools can I use to remove the background from a PDF file?

There are several software options available for removing backgrounds from PDF files, including Adobe Acrobat Pro, Foxit PhantomPDF, and Nitro Pro. Additionally, there are online tools such as Smallpdf and PDF2Go that allow you to remove backgrounds without downloading any software.

Can I remove the background from a scanned PDF file?

Yes, you can remove the background from a scanned PDF file using optical character recognition (OCR) software. This technology allows you to convert scanned images into editable text, making it possible to remove backgrounds and make other edits to the document.

Will removing the background affect the quality of my PDF file?

In most cases, removing the background from a PDF file will not significantly impact the overall quality of the document. However, if the background is an important part of the content, such as a watermark or logo, removing it may affect the readability or branding of the document.

Is it possible to remove the background from only certain pages of a PDF file?

Yes, many PDF editing software programs allow you to select specific pages or sections of a document to edit. This means you can choose to remove the background from only certain pages, leaving it intact on others.

Can I save a PDF file with the background removed?

Yes, you can save a PDF file with the background removed after making the necessary edits. Most PDF editing software programs allow you to save the edited document as a new file, so you can keep the original with the background intact if needed.

Similar threads

  • Computing and Technology
Replies
7
Views
2K
  • Computing and Technology
Replies
10
Views
1K
  • Computing and Technology
Replies
2
Views
2K
  • Computing and Technology
Replies
4
Views
1K
Replies
14
Views
2K
  • Computing and Technology
Replies
6
Views
3K
  • Computing and Technology
Replies
5
Views
3K
  • Programming and Computer Science
Replies
3
Views
1K
  • Computing and Technology
Replies
3
Views
2K
  • Programming and Computer Science
Replies
1
Views
1K
Back
Top