<Imageformattype>Pdf Not Working Follow

0
Avatar
Legacy Poster

For the <ImageFormatType> tag in the <ExportPrintPreviewToImage> command the help says that .pdf is a supported export type but if I set it as follows:

 

<ImageFormatType>PDF</ImageFormatType>

 

I get a parsing error as follows:

 

An error occurred during BTXML Script processing:

'PDF' violates pattern constraint of '[Jj][Pp][Gg]|[Tt][Ii][Ff]|[Gg][Ii][Ff]|[Pp][Nn][Gg]|[Pp][Ss][Dd]|[Cc][Ll][Pp]|[Cc][Uu][Tt]|[Ee][Cc][Ww]|[Ee][Mm][Ff]|[Ee][Pp...'.
The element 'ImageFormatType' with value 'PDF' failed to parse.
Line 68, Column 27: '    <ImageFormatType>PDF</ImageFormatType> '
while parsing:"C:\Documents and Settings\Administrator\My Documents\BarTender\BarTender Documents\SimonD\FSA BTXMLTest2.xml"

3 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

PDF is supported for importing and use as a picture object, but we don't support the export into PDF.

 

The best option is to print the document to file using a PDF driver.

0
Avatar
Legacy Poster
Comment actions Permalink

Thanks for this. In this case the Help pages are a bit misleading - on the ImageFormatType help page there is a link to Supported Image Formats which specifically lists .pdf as a supported export type?

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Yes it is a bit misleading, I'll make a note for our technical authors to make this clearer.

Please sign in to leave a comment.