pdf variation loop