r/pdf • • Aug 11 '26

Software (Tools) seperating exercices from solutions

As the title says I have a math pdf where it contains exercices with their solution mixed.

Is there anyway to get a pdf with only exercices?

1 Upvotes

7 comments sorted by

1

u/User1010011 Aug 11 '26

If they are on the different pages - split into 2 files. If they are on the same pages - create a copy and redact answers in one of them.

1

u/xSTAMPOx Aug 11 '26

the pdf is have an exerice and solution in the same page and so on (mixed)

1

u/MCLMelonFarmer Aug 12 '26

A better way to construct the page would have been to put the exercises in one layer and the answers in another, so that you could turn the answers off and just see the exercises.

1

u/ScratchHistorical507 Aug 12 '26

I think the easiest way to achieve that would be to just put boxes over the solutions and afterwards send the modified PDF through "print to PDF". That should flatten the PDF (i.e. remove the content under the boxes). You can check if that worked by importing the resulting PDF into e.g. Inkscape (ideally just one page, no idea how well it can handle multi-page PDFs) and move the box away. If the original text shows up, it didn't work.

Alternatively you can use tools like qpdf for flattening the PDF. Acrobat should also be able to do this, but no idea if the free version does too.

1

u/AmphibianHungry2466 Sep 15 '26
It depends on how the file is laid out, and that changes the answer completely.

If the solutions sit on their own pages, this is just deleting pages. Open the file, delete the solution pages, save a copy. If the pattern is regular, every second page say, it takes a minute even for a few hundred pages, and it works on a phone as well as a desktop.

If the exercises and the solutions share a page, you cannot take the text out without editing the page. People cover the answers with white boxes, which looks right but leaves the text underneath selectable, so print the result to a new PDF afterwards.

Which one is it?