I am working on a project where I have to extract the drawing from pdf file, the issue is that the pdf is extracted and also got converted but I dont want complete image I just want the drawing part(Screw i.e Type : Panhead , Thread pitch = 0.35 mm pic) with all its label and remove every thing else I tried to crop the perticular part of the PDF but that only hides the rest part of the pdf the canvas size and the other content remain as it is the only difference is that it is(the cropped part) not visible and due to which there is a lot of blank space created around the target image, what my aim is that there are multiple pdf files and I want to extract the drawing part removing everything else on PDF and save that drawing as svg file all the explanation was using pdf link is here (https://www.es.co.th/Schemetic/PDF/SCREW-M3-XX.PDF) and also uploading the target imge which I want, Below is the part of code which might give you the idea: fitz.open(pdf_path) page = doc[page_number] # crop_rect = fitz.Rect(60, 80, 595, 695) # Crop the page to the defined area # page.set_cropbox(crop_rect) # Create a new PDF document for the cropped content svg_content = page.get_svg_image(matrix=fitz.Matrix(1, 1)) Continue reading...