Parses a PDF file and returns the extracted content in the specified format. The tools supports both local file paths and remote URLs as input sources. It extracts the content from the PDF and formats it either as structured JSON or as a Markdown string.