This sample demonstrates how to delete, extract, and append pages to and from a vector PDF file without causing additional pages in that vector PDF to change into non-vector pages because of those manipulations. Pages being appended to vector PDFs can be vector or non vector pages. You can find the samples in the \samples\vectorpdf directory.

For instructions on running this sample, please see the instructions to Run RasterMaster samples in your IDE or to Run samples from the Command Prompt in the Overview.

Listed below are the methods used in this sample:

  • IMGLOW_delete_page(String, int, int) returns the ability to delete the specified page from a multi-page PDF document.
  • IMGLOW_extract_page(String, int, int) extracts the specified page from a multi-page PDF or TIFF document.
  • IMGLOW_append_page(String, byte, int) allows the appending of PDF content for individual pages without any changes.
  • IMG_decompress_bitmap_stream(String, int) reads images from a standard URL.
  • IMG_save_bitmap(int, int, int, int) allows saving to a byte array without knowing or guessing the final size of the compressed image or document.