TIFF Exporting to Perceptive Content in Wrong Orientation
Reported Issue
Documents exported from Slate to Perceptive Content were all coming through as portrait format, even when they should be landscape. The school wanted to continue using TIFF format because Perceptive Content cannot annotate PDF's.
Settings:
- Query Base: Configurable Joins - Document
- Format: Document Export v2
- Archive: ZIP
- Document Type: TIFF (multi-page)
- DPI: 600
- Pixel Depth: 1 (black and white)
- Compression: CCITT
- Index Format: No Index File
What We Found
Based on the Scheduling Document Exports > Document export v2 article in Technolutions' Slate Knowledge Base, standardย pdf:xmlย export does not preserve a document's original orientation. It defaults to portrait regardless of how the document actually appears in Slate.ย
The ReSolution
Following the documentation, we replaced the standardย pdf:xml export with a custom SQL export that uses the 'internal' mode. Documents then exported in the same orientation as appears in Slate.
(select doc__JID_.[record] as [@id], 'internal' as [@mode], doc__JID_.[scope] as [@scope], doc__JID_.[xml] as [node()] for xml path('batch'), type)
You can also rebuild the pdf:xml export using CJ's. Experimentally, try copying and pasting this code into a subquery export. You must change the export type to XML and add the node name, batch.
{"type":"subquery","parts":[{"id":"ed7f4377-d9e9-4e87-8944-29531f72bb50","uuid":"f322ad14-d1ec-4c0b-bb88-e86543ba4736","type":"export","parameters":[],"active":"1","name":"@id","source_type":"library","query":"7685a059-c66b-4e70-a331-5694665e06de","filterable":"0","sourceActive":"0","sourceExists":"0"},{"uuid":"1a522fda-cba0-4642-87b7-0ecf04abd91e","type":"export","parameters":[],"active":"1","name":"@mode","source_type":"literal","query":"7685a059-c66b-4e70-a331-5694665e06de","filterable":"0","sourceActive":"0","sourceExists":"0","source_key":"internal"},{"id":"141f184c-669b-4f83-ad04-4cd53e55aced","uuid":"f9d84722-349a-4510-9caf-3bb0d3a8940d","type":"export","parameters":[],"active":"1","name":"@scope","source_type":"library","query":"7685a059-c66b-4e70-a331-5694665e06de","filterable":"0","sourceActive":"0","sourceExists":"0"},{"id":"bd0fabd3-72d9-4be0-9d14-b740d13220ab","uuid":"691c16d8-2cb2-4cb2-b69f-f7ca5b458dc9","type":"export","parameters":[],"active":"1","name":"node()","source_type":"library","query":"7685a059-c66b-4e70-a331-5694665e06de","filterable":"0","sourceActive":"0","sourceExists":"0"}],"base":"259e88b8-ef25-45eb-bd0b-5115fed6b910"}
No comments to display
No comments to display