I can open a PDF with layers but it creates hundreds of them.

I can open a PDF with layers but it creates hundreds of them.

Instead of having ten layers there are hundreds of them with small groups of objects in those same layer names over and over.

The only way I can think to fix it is to make 10 different PDFs with each of the 10 layers and bring them in one at a time.

 ???