public class PagePreviewTools extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_PREVIEW_BOTH |
static int |
CREATE_PREVIEW_IMAGES |
static int |
CREATE_PREVIEW_PDF |
| Constructor and Description |
|---|
PagePreviewTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
changeFileIDString(String oldFileID,
PrintPublication publication)
Change the given filename from the .crpt script (pdf: pagepreview_pdf_timestamp_indesignfilename.pdf, image:
pagepreview_img_timestamp_full_(pagenumber)_indesignfilename.jpg) into a better media code (pdf:
pdfprefix+page.pk+timestamp, image: imageprefix+page.pk+timestamp+imagenumber) This method also works if instead the
indesignfilename the page id is trasmitted.
|
static void |
createPreviewChapterJob(Chapter chapter,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles,
Integer previewSize,
EnumerationValue pdfPreset) |
static void |
createPreviewChapterJob(Chapter chapter,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles,
Integer previewSize,
EnumerationValue pdfPreset,
int mode)
Creates an AutoCometJob that creates previews for chapters
|
static void |
createPreviewPageJob(Page page)
Creates an AutoCometJob that creates previews for pages
|
static void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status)
Creates an AutoCometJob that creates previews for pages.
|
static void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue)
Creates an AutoCometJob that creates previews for pages
|
static void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles)
Creates an AutoCometJob that creates previews for pages
|
static void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles,
Integer previewSize,
EnumerationValue pdfPreset) |
static void |
createPreviewPageJob(Page page,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles,
Integer previewSize,
EnumerationValue pdfPreset,
int mode)
Creates an AutoCometJob that creates previews for pages
|
static void |
createPreviewPublicationJob(Publication publication,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles,
Integer previewSize,
EnumerationValue pdfPreset) |
static void |
createPreviewPublicationJob(Publication publication,
CometConstants.AutoCometJob status,
EnumerationValue enumvalue,
boolean useTemporaryFiles,
Integer previewSize,
EnumerationValue pdfPreset,
int mode)
Creates an AutoCometJob that creates previews for publication
|
static Item |
getPageByIdentifier(String id,
PrintPublication publication) |
static Collection<CometFile> |
getPagePreviewMedias(String searchstring)
returns all medias which starts with the given code
|
static Collection<CometFile> |
getPagePreviewPDFMedias(String scriptstring,
PrintPublication publication)
Returns for the given String which has to start with
PrintConstants.PAGEPREVIEW_PDF_PREFIX and the given
PrintPublication the Page from this publication. |
public static final int CREATE_PREVIEW_IMAGES
public static final int CREATE_PREVIEW_PDF
public static final int CREATE_PREVIEW_BOTH
public static String changeFileIDString(String oldFileID, PrintPublication publication) throws CometException
oldFileID - the filename String from the 601.crpt scriptpublication - needed for finding the correct pageCometExceptionpublic static Collection<CometFile> getPagePreviewPDFMedias(String scriptstring, PrintPublication publication) throws CometException
PrintConstants.PAGEPREVIEW_PDF_PREFIX and the given
PrintPublication the Page from this publication.scriptstring - publication - CometFilesCometExceptionpublic static Collection<CometFile> getPagePreviewMedias(String searchstring)
searchstring - public static Item getPageByIdentifier(String id, PrintPublication publication) throws CometException
CometExceptionpublic static void createPreviewPageJob(Page page)
page - The Page for which to create the previewspublic static void createPreviewPageJob(Page page, CometConstants.AutoCometJob status)
page - The Page for which to create the previewsstatus - The AutoCometJob's initial statuspublic static void createPreviewPageJob(Page page, CometConstants.AutoCometJob status, EnumerationValue enumvalue)
page - The Page for which to create the previewsstatus - The AutoCometJob's initial statusenumvalue - These Job will be, depending of the enum, deletedpublic static void createPreviewPageJob(Page page, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles)
page - The Page for which to create the previewsstatus - The AutoCometJob's initial statusenumvalue - These Job will be, depending of the enum, deleteduseTemporaryFiles - the indd file will be deleted by the comet plugin afterwardspublic static void createPreviewPageJob(Page page, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles, Integer previewSize, EnumerationValue pdfPreset)
public static void createPreviewChapterJob(Chapter chapter, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles, Integer previewSize, EnumerationValue pdfPreset)
public static void createPreviewPublicationJob(Publication publication, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles, Integer previewSize, EnumerationValue pdfPreset)
public static void createPreviewPageJob(Page page, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles, Integer previewSize, EnumerationValue pdfPreset, int mode)
page - The Page for which to create the previewsstatus - The AutoCometJob's initial statusenumvalue - These Job will be, depending of the enum, deleteduseTemporaryFiles - the indd file will be deleted by the comet plugin afterwardspreviewSize - size of generated preview, if null then default value will be takenpdfPreset - generated pdf will be of pdfPreset type, if null then default value will be takenmode - - to create images, pdfs or bothpublic static void createPreviewChapterJob(Chapter chapter, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles, Integer previewSize, EnumerationValue pdfPreset, int mode)
chapter - The Chapter for which to create the previewsstatus - The AutoCometJob's initial statusenumvalue - These Job will be, depending of the enum, deleteduseTemporaryFiles - the indd file will be deleted by the comet plugin afterwardspreviewSize - size of generated preview, if null then default value will be takenpdfPreset - generated pdf will be of pdfPreset type, if null then default value will be takenmode - - to create images, pdfs or bothpublic static void createPreviewPublicationJob(Publication publication, CometConstants.AutoCometJob status, EnumerationValue enumvalue, boolean useTemporaryFiles, Integer previewSize, EnumerationValue pdfPreset, int mode)
publication - The Publication for which to create the previewsstatus - The AutoCometJob's initial statusenumvalue - These Job will be, depending of the enum, deleteduseTemporaryFiles - the indd file will be deleted by the comet plugin afterwardspreviewSize - size of generated preview, if null then default value will be takenpdfPreset - generated pdf will be of pdfPreset type, if null then default value will be takenmode - - to create images, pdfs or bothCopyright © 2017 SAP SE. All Rights Reserved.