I would like to create PDFs using Search by attributes and Range Wise attributes using Python Script.
Can anyone suggest me.
Sounds like a select by attribute to get the intended attributes. Then select by location to get the page numbers of the index layer.
Range wise is available via the exportToPDF function of the datadrivenpages class.
For the attributes could you explain what types of attributes you're needing to search for?
Retrieving data ...