Label Preview - Web Service S’abonner

0
Avatar
Bryan Lester

Is there a function within Integration Builder that would return an image or pdf of a finished label? I see some information related to saving the print preview to a file, but I'm looking to get the image in web service response to a web service request - likely as a base64 encoded string.

6 commentaires

0
Avatar
Allen Arthur Cook
Actions pour les commentaires Permalien

Print BTXML Script actually has this. It actually functions more like Run BTXML Script, You can capture the btxml response (if there is no error) from the action and pass it back.

The BTXML command ExportPrintPreviewToImage is what you are looking for.

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

0
Avatar
Allen Arthur Cook
Actions pour les commentaires Permalien

Could we make the Print Scheduler ExportPrintPreviewToImageAction have the same capability?

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Allen: It should be noted that the Integration Platform uses the Print Scheduler API to submit BarTender document action requests including the preview option.  Make sure the "ReturnImageInResponse" attribute in the BTXML request is set to true so that the response BTXML contains the base64 image data.

<ExportPrintPreviewToImage ReturnImageInResponse="true">
0
Avatar
Allen Arthur Cook
Actions pour les commentaires Permalien

The request object for the print scheduler ExportPrintPreviewToImageAction does not have this as a property.

I can use the execute BTXML task to get the xml but seems like a good idea to add this as part of the the ExportPrintPreviewToImageAction request and response.

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Allen: The Print Scheduler API supports the ExportPrintPreviewToImageAction class to make a preview request, and an ExportPrintPreviewToImageResult class for capturing the result.  I've not used this myself, but I'd guess the base64 encoded image data for each page/label will be found in the text property of each action message instance returned in the result object.

Vous devez vous connecter pour laisser un commentaire.