Archived from the Transloadit support forum. Originally posted on April 7, 2014; details may be outdated, see our docs for current behavior. Original thread
I’m trying to integrate the Flexpaper PDf viewier with Transloadit.
I have run into the following problem:
- I’m using Transloadit assembly variables to store files in a format compatible with Flexpaper, eg path: “${file.original_id}/${file.meta.thumb_index}.${file.ext}” which produces files 0-XXX
- Flexpaper seems to require that pages be numbered from 1-XXXX
I cannot find an easy method in either Flexpaper or Transloadit to make this work together easily.
The two possibilities I am considering as viable:
- If there was some way to tamper with the file name that Transloadit creates to get files named 1-XXX eg interpolating calculations in the path: “${file.original_id}/${file.meta.thumb_index + 1}.${file.ext}”
- Customizing Flexpaper.js to make it read from files 0-XXX rather than 1-XXX
Any suggestions much appreciated!