main edit + pdf