added mm method
added method saveNextFrameAsPDF