本文整理匯總了Java中net.sf.jasperreports.export.PdfExporterConfiguration類的典型用法代碼示例。如果您正苦於以下問題:Java PdfExporterConfiguration類的具體用法?Java PdfExporterConfiguration怎麽用?Java PdfExporterConfiguration使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PdfExporterConfiguration類屬於net.sf.jasperreports.export包,在下文中一共展示了PdfExporterConfiguration類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getIntegerPermissions
import net.sf.jasperreports.export.PdfExporterConfiguration; //導入依賴的package包/類
public static int getIntegerPermissions(String permissions) {
int permission = 0;
if(permissions != null && permissions.length() > 0) {
String[] perms = permissions.split("\\|");
for(String perm : perms) {
if(PdfPermissionsEnum.ALL.equals(PdfPermissionsEnum.getByName(perm))) {
permission = PdfExporterConfiguration.ALL_PERMISSIONS;
break;
}
if(perm != null && perm.length()>0) {
permission |= PdfPermissionsEnum.getByName(perm).getPdfPermission();
}
}
}
return permission;
}
示例2: createTabMetadata
import net.sf.jasperreports.export.PdfExporterConfiguration; //導入依賴的package包/類
private void createTabMetadata(CTabFolder tabFolder) {
CTabItem ptab = new CTabItem(tabFolder, SWT.NONE);
ptab.setText(Messages.PDFExporterPreferencePage_38);
Composite sc = new Composite(tabFolder, SWT.NONE);
ptab.setControl(sc);
addField(new StringFieldEditor(PdfExporterConfiguration.PROPERTY_METADATA_TITLE,
Messages.PDFExporterPreferencePage_39, sc));
addField(new StringFieldEditor(PdfExporterConfiguration.PROPERTY_METADATA_AUTHOR,
Messages.PDFExporterPreferencePage_40, sc));
addField(new StringFieldEditor(PdfExporterConfiguration.PROPERTY_METADATA_SUBJECT,
Messages.PDFExporterPreferencePage_41, sc));
addField(new StringFieldEditor(PdfExporterConfiguration.PROPERTY_METADATA_KEYWORDS,
Messages.PDFExporterPreferencePage_42, sc));
addField(new StringFieldEditor(PdfExporterConfiguration.PROPERTY_METADATA_CREATOR,
Messages.PDFExporterPreferencePage_43, sc));
sc.setLayout(new GridLayout(3, false));
}
示例3: initExport
import net.sf.jasperreports.export.PdfExporterConfiguration; //導入依賴的package包/類
@Override
protected void initExport()
{
super.initExport();
PdfExporterConfiguration configuration = getCurrentConfiguration();
Boolean isTagged = configuration.isTagged();
if (isTagged != null)
{
tagHelper.setTagged(isTagged);
}
tagHelper.setLanguage(configuration.getTagLanguage());
this.permissions = getIntegerPermissions(configuration.getAllowedPermissions()) & (~getIntegerPermissions(configuration.getDeniedPermissions()));
crtDocumentPageNumber = 0;
awtIgnoreMissingFont = getPropertiesUtil().getBooleanProperty(
JRStyledText.PROPERTY_AWT_IGNORE_MISSING_FONT);//FIXMECONTEXT replace with getPropertiesUtil in all exporters
glyphRendererAddActualText = propertiesUtil.getBooleanProperty(
PdfReportConfiguration.PROPERTY_GLYPH_RENDERER_ADD_ACTUAL_TEXT, false);
if (glyphRendererAddActualText && !tagHelper.isTagged && PdfGlyphRenderer.supported())
{
minimalVersion = PdfVersionEnum.VERSION_1_5;
}
}
示例4: getConfigurationInterface
import net.sf.jasperreports.export.PdfExporterConfiguration; //導入依賴的package包/類
@Override
protected Class<PdfExporterConfiguration> getConfigurationInterface()
{
return PdfExporterConfiguration.class;
}
示例5: getDefaults
import net.sf.jasperreports.export.PdfExporterConfiguration; //導入依賴的package包/類
public static void getDefaults(IPreferenceStore store) {
store.setDefault(PdfExporterConfiguration.PROPERTY_PDF_VERSION, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_PDF_VERSION),
Messages.PDFExporterPreferencePage_25));
store.setDefault(PdfExporterConfiguration.PROPERTY_COMPRESSED,
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_COMPRESSED));
store.setDefault(PdfExporterConfiguration.PROPERTY_CREATE_BATCH_MODE_BOOKMARKS,
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_CREATE_BATCH_MODE_BOOKMARKS));
store.setDefault(PdfExporterConfiguration.PROPERTY_PDF_JAVASCRIPT, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_PDF_JAVASCRIPT),
Messages.PDFExporterPreferencePage_26));
store.setDefault(PdfReportConfiguration.PROPERTY_FORCE_SVG_SHAPES,
PropertiesHelper.DPROP.getProperty(PdfReportConfiguration.PROPERTY_FORCE_SVG_SHAPES));
store.setDefault(PdfExporterConfiguration.PROPERTY_PRINT_SCALING,
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_PRINT_SCALING));
store.setDefault(PdfExporterConfiguration.PROPERTY_TAG_LANGUAGE, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_TAG_LANGUAGE),
Messages.PDFExporterPreferencePage_27));
store.setDefault(NSF_EXPORT_PDF_COLLAPSE_MISSING_BOOKMARK_LEVELS,
PropertiesHelper.DPROP.getProperty(NSF_EXPORT_PDF_COLLAPSE_MISSING_BOOKMARK_LEVELS));
store.setDefault(PdfExporterConfiguration.PROPERTY_TAGGED, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_TAGGED),
Messages.PDFExporterPreferencePage_28));
// FONTS
store.setDefault(NSF_EXPORT_PDF_EMBEDDED, PropertiesHelper.DPROP.getProperty(NSF_EXPORT_PDF_EMBEDDED));
store.setDefault(NSF_EXPORT_PDF_ENCODING, PropertiesHelper.DPROP.getProperty(NSF_EXPORT_PDF_ENCODING));
store.setDefault(NSF_EXPORT_PDF_FONT_NAME, PropertiesHelper.DPROP.getProperty(NSF_EXPORT_PDF_FONT_NAME));
store.setDefault(NSF_EXPORT_PDF_FONTDIR,
Misc.nvl(PropertiesHelper.DPROP.getProperty(NSF_EXPORT_PDF_FONTDIR), Messages.PDFExporterPreferencePage_29));
// SECURITY
store.setDefault(PdfExporterConfiguration.PROPERTY_ENCRYPTED,
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_ENCRYPTED));
store.setDefault(PdfExporterConfiguration.PROPERTY_128_BIT_KEY,
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_128_BIT_KEY));
store.setDefault(PdfExporterConfiguration.PROPERTY_USER_PASSWORD, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_USER_PASSWORD),
Messages.PDFExporterPreferencePage_30));
store.setDefault(PdfExporterConfiguration.PROPERTY_OWNER_PASSWORD, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_OWNER_PASSWORD),
Messages.PDFExporterPreferencePage_31));
store.setDefault(PdfExporterConfiguration.PROPERTY_PERMISSIONS_ALLOWED, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_PERMISSIONS_ALLOWED),
Messages.PDFExporterPreferencePage_32));
// metadata
store.setDefault(PdfExporterConfiguration.PROPERTY_METADATA_TITLE, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_METADATA_TITLE),
Messages.PDFExporterPreferencePage_33));
store.setDefault(PdfExporterConfiguration.PROPERTY_METADATA_AUTHOR, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_METADATA_AUTHOR),
Messages.PDFExporterPreferencePage_34));
store.setDefault(PdfExporterConfiguration.PROPERTY_METADATA_SUBJECT, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_METADATA_SUBJECT),
Messages.PDFExporterPreferencePage_35));
store.setDefault(PdfExporterConfiguration.PROPERTY_METADATA_KEYWORDS, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_METADATA_KEYWORDS),
Messages.PDFExporterPreferencePage_36));
store.setDefault(PdfExporterConfiguration.PROPERTY_METADATA_CREATOR, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_METADATA_CREATOR),
Messages.PDFExporterPreferencePage_37));
// PDF/A
store.setDefault(PdfExporterConfiguration.PROPERTY_PDFA_CONFORMANCE, Misc.nvl(
PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_PDFA_CONFORMANCE),
PdfaConformanceEnum.NONE.getName()));
store.setDefault(PdfExporterConfiguration.PROPERTY_PDFA_ICC_PROFILE_PATH,
Misc.nvl(PropertiesHelper.DPROP.getProperty(PdfExporterConfiguration.PROPERTY_PDFA_ICC_PROFILE_PATH), "")); //$NON-NLS-1$
}