|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.sevenpdf.service.PDFService
public class PDFService
7-PDF Java Library
Date: 10.12.2009
This java library makes it possible to connect directly to a 7-PDF Api Service.
Currently 7-PDF Api Service supports 84 file formats that can be directly converted to PDF without any third-party-application.
So this java library gives you the possibility to create PDF-on-the-fly by using a powerfull client/server based conversion service.
Only with this java object class you can define multiple pdf settings for example, doing pdf file encryptions or set some permissions.
The connection to a 7-PDF Api Service is possible over web or intranet by using the HTTP-Protocol. For this, you have to register and get an free conversion account at http://www.7-pdf.de
| Constructor Summary | |
|---|---|
PDFService(java.lang.String ServiceURL,
java.lang.String ServiceUser,
java.lang.String ServicePassword)
|
|
| Method Summary | |
|---|---|
boolean |
Convert(java.io.File SourceFile,
java.io.File PDFFile)
Starts a conversion run. |
java.lang.String |
GetPDFOptionDocumentOpenPassword()
Gets the PDFOption DocumentOpenPassword. |
boolean |
GetPDFOptionEnableCopyingOfContent()
Gets the PDFOption EnableCopyingOfContent. |
boolean |
GetPDFOptionEnableTextAccessForAccessibilityTools()
Gets the PDFOption EnableTextAccessForAccessibilityTools. |
boolean |
GetPDFOptionEncryptFile()
Gets the PDFOption Value EncryptFile. |
boolean |
GetPDFOptionExportBookmarks()
Gets the PDFOption Value ExportBookmarks. |
boolean |
GetPDFOptionExportNotes()
Gets the PDFOption Value ExportNotes. |
boolean |
GetPDFOptionExportNotesPages()
Gets the PDFOption Value ExportNotesPages. |
int |
GetPDFOptionImageQuality()
Gets the PDFOption Value ImageQuality. |
int |
GetPDFOptionMaxImageResolution()
Gets the PDFOption MaxImageResolution. |
java.lang.String |
GetPDFOptionPageRange()
Gets the PDFOption Value PageRange. |
int |
GetPDFOptionPermissionChanges()
Gets the PDFOption Value PermissionChanges. |
java.lang.String |
GetPDFOptionPermissionPassword()
Gets the PDFOption PermissionPassword. |
int |
GetPDFOptionPermissionPrinting()
Gets the PDFOption Value PermissionPrinting. |
boolean |
GetPDFOptionReduceImageResolution()
Gets the PDFOption Value ReduceImageResolution. |
boolean |
GetPDFOptionRestrictPermissions()
Gets the PDFOption Value RestrictPermissions. |
int |
GetPDFOptionSelectPDFVersion()
Gets the PDFOption Value SelectPDFVersion. |
boolean |
GetPDFOptionUseLosslessCompression()
Gets the PDFOption Value UseLosslessCompression. |
boolean |
GetPDFOptionUseTaggedPDF()
Gets the PDFOption Value UseTaggedPDF. |
void |
SetPDFOptionDocumentOpenPassword(java.lang.String Value)
Sets the PDFOption DocumentOpenPassword. |
void |
SetPDFOptionEnableCopyingOfContent(boolean Value)
Sets the PDFOption EnableCopyingOfContent. |
void |
SetPDFOptionEnableTextAccessForAccessibilityTools(boolean Value)
Sets the PDFOption EnableTextAccessForAccessibilityTools. |
void |
SetPDFOptionEncryptFile(boolean Value)
Sets the PDFOption EncryptFile. |
void |
SetPDFOptionExportBookmarks(boolean Value)
Sets the PDFOption ExportBookmarks. |
void |
SetPDFOptionExportNotes(boolean Value)
Sets the PDFOption ExportNotes. |
void |
SetPDFOptionExportNotesPages(boolean Value)
Sets the PDFOption ExportNotesPages. |
void |
SetPDFOptionImageQuality(int Value)
Sets the PDFOption ImageQuality. |
void |
SetPDFOptionMaxImageResolution(int Value)
Sets the PDFOption MaxImageResolution. |
void |
SetPDFOptionPageRange(java.lang.String Value)
Sets the PDFOption PageRange. |
void |
SetPDFOptionPermissionChanges(int Value)
Sets the PDFOption PermissionChanges. |
void |
SetPDFOptionPermissionPassword(java.lang.String Value)
Sets the PDFOption PermissionPassword. |
void |
SetPDFOptionPermissionPrinting(int Value)
Sets the PDFOption PermissionPrinting. |
void |
SetPDFOptionReduceImageResolution(boolean Value)
Sets the PDFOption ReduceImageResolution. |
void |
SetPDFOptionRestrictPermissions(boolean Value)
Sets the PDFOption RestrictPermissions. |
void |
SetPDFOptionSelectPDFVersion(int Value)
Sets the PDFOption SelectPDFVersion. |
void |
SetPDFOptionUseLosslessCompression(boolean Value)
Sets the PDFOption UseLosslessCompression. |
void |
SetPDFOptionUseTaggedPDF(boolean Value)
Sets the PDFOption UseTaggedPDF. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDFService(java.lang.String ServiceURL,
java.lang.String ServiceUser,
java.lang.String ServicePassword)
ServerURL - The URL-Location where a 7-PDF Api Service is running.Username - The Service-User that is necessary to connect the 7-PDF Remote Api Service.Password - The Service-Password that is necessary to connect the 7-PDF Remote Api Service.| Method Detail |
|---|
public boolean Convert(java.io.File SourceFile,
java.io.File PDFFile)
SourceFile - The file that you would like to convert to PDF.PDFFile - The result pdf.
public void SetPDFOptionUseTaggedPDF(boolean Value)
Value - The value can be true or false (default).public boolean GetPDFOptionUseTaggedPDF()
public void SetPDFOptionExportNotes(boolean Value)
Value - The value can be true or false (default).public boolean GetPDFOptionExportNotes()
public void SetPDFOptionExportNotesPages(boolean Value)
Value - The value can be true or false (default).public boolean GetPDFOptionExportNotesPages()
public void SetPDFOptionExportBookmarks(boolean Value)
Value - The value can be true (default) or false.public boolean GetPDFOptionExportBookmarks()
public void SetPDFOptionSelectPDFVersion(int Value)
Value - The value can be 0 (PDF 1.4, default) or 1 (PDF/A-1).public int GetPDFOptionSelectPDFVersion()
public void SetPDFOptionPageRange(java.lang.String Value)
Value - The value can be a valid PageRange string like 1; 1-2; public java.lang.String GetPDFOptionPageRange()
public void SetPDFOptionUseLosslessCompression(boolean Value)
Value - The image compression state can be true (default) or false.public boolean GetPDFOptionUseLosslessCompression()
public void SetPDFOptionImageQuality(int Value)
Value - Possible value range from 0 - 100 (percent).public int GetPDFOptionImageQuality()
public void SetPDFOptionReduceImageResolution(boolean Value)
Value - The ReduceImageResolution state can be true or false (default).public boolean GetPDFOptionReduceImageResolution()
public void SetPDFOptionMaxImageResolution(int Value)
Value - Possible values (dpi) are:public int GetPDFOptionMaxImageResolution()
public void SetPDFOptionEncryptFile(boolean Value)
Value - The encryption state can be true (encrypt files) or false (no encryption, default).public boolean GetPDFOptionEncryptFile()
public void SetPDFOptionDocumentOpenPassword(java.lang.String Value)
Value - The value can be any password string that you would like to use for your pdf encryption.public java.lang.String GetPDFOptionDocumentOpenPassword()
public void SetPDFOptionRestrictPermissions(boolean Value)
Value - The restrict permission state can be true (pdf with permission settings) or false (pdf without permission settings, default).public boolean GetPDFOptionRestrictPermissions()
public void SetPDFOptionPermissionPassword(java.lang.String Value)
Value - The value can be any password string that you would like to use for your pdf permission settings.public java.lang.String GetPDFOptionPermissionPassword()
public void SetPDFOptionPermissionPrinting(int Value)
Value - Possible values are:public int GetPDFOptionPermissionPrinting()
public void SetPDFOptionPermissionChanges(int Value)
Value - Possible values are:public int GetPDFOptionPermissionChanges()
public void SetPDFOptionEnableCopyingOfContent(boolean Value)
Value - This permission value can be true (default) or false;public boolean GetPDFOptionEnableCopyingOfContent()
public void SetPDFOptionEnableTextAccessForAccessibilityTools(boolean Value)
Value - This permission value can be true (default) or false;public boolean GetPDFOptionEnableTextAccessForAccessibilityTools()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||