Label Preview - Web Service
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.
-
Allen Arthur Cook
★ BarTender Hero ★
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 -
See the BarTender Help system at the below link:
http://help.seagullscientific.com/2016/en/#../Subsystems/BTXML/Content/ExportPreviewCommand_Tag.htm
0 -
Allen Arthur Cook
★ BarTender Hero ★
Could we make the Print Scheduler ExportPrintPreviewToImageAction have the same capability?
0 -
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 -
Allen Arthur Cook
★ BarTender Hero ★
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 -
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.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
6 commentaires