//@Test
public void testPdf() throws ResourceException, ReportProcessingException, IOException
{
URL resource = getClass().getResource("rich-text-sample1.prpt");
ResourceManager mgr = new ResourceManager();
MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();
report.getReportHeader().getElement(0).getStyle().setStyleProperty(TextStyleKeys.DIRECTION, TextDirection.LTR);
report.getReportHeader().getElement(1).getStyle().setStyleProperty(TextStyleKeys.DIRECTION, TextDirection.RTL);
report.getReportHeader().removeElement(0);
report.getReportHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
report.getReportFooter().clear();