Detailed control over which annotations to draw when saving PDF as image

This sample loads a one-page PDF containing several annotations, and saves that page as SVG using DrawAnnotationFilter to include only annotations which satisfy certain conditions (free text annotations that are within the page bounds).The SVG is then inserted as the first page of the resulting PDF. The second page shows the original PDF for reference.