I am using the API create action for create a new project, uploaded two files as cover and content pdf files,
But I get this error,
stdClass Object ( [error_value] => Your cover file is 595.28 points wide by 841.89 points high, but these are not the right dimensions. Your cover should be uploaded at 1208 x 860 points. [error_type] => LApiPublishInvalidDocumentException )
How can i overcome this error? pls help,
thanks for your answers.
Message edited by sijolulu 1 week ago
2 years ago
The PDF that you are providing as your cover is too small. It looks like you are probably uploading a document of the same size as your interior file, but remember that the cover has to be able to wrap all the way around the book (front and back cover as well as the spine). The size indicated in the error message is how large the PDF needs to be.
2 years ago
thanks josiah for your answers,
I want to know, can i create a cover pdf with size '1208 x 860' points in lulu ?
Is there any API action to create the cover pdf with above size from existing cover pdf file or create new cover pdf ?
You can use the cover generation functionality (see http://developer.lulu.com/docs/read/createpdf/Creating_PDFs) to create a PDF of the appropriate size. Simply choose a template ID with the appropriate trim size and specify the number of pages in your interior PDF and it will generate a PDF with the correct dimensions.
but when i go through the basic templates for lulu most popular POD packages (see http://developer.lulu.com/docs/createpdf/PDF_Constants#templates), i can't see a appropriate size which i want,
i am using interior pdf of 'A4' size, so i want a cover with '1208 x 860' points (i think 16.78" x 11.94" inches) size.
Is there any cover templates with above size?
Ah, you are right, there are no A4 templates in our cover generation API. You can either create a project using a different trim size or use a PDF library to generate the PDF on your side.
11 months ago
Hi, I'm just getting up to speed with the API, and this topic is a little old but fits my situation: I want to make a 6" x 9" with coil binding but it appears that there are no Cover Templates with a coil binding:
Based on those templates it looks like I cannot use the API to order a coil binding, or am I wrong about that? Submitting a cover is a critical part of what I want to do with the API, and I was REALLY hoping for a coil binding but can live without it, or would be happy to try to use a beta... :)
Thanks for any advice!
11 months ago
You're right, it is a current shortcoming of the cover generation API that it only supports perfect, jacket hardcover, and casewrap hardcover bindings. As currently implemented, if you were to specify a spine width of 0 points, a paperback template would still render a small (< 0.1")spine. I have entered a bug to allow for a 0-width spine, but the schedule for the release of a fix is unknown.
If you by chance intend to use the same background color for the front and back covers, then a potential workaround would be to use that same background color for the spine (passing 0 points as the spine width). The resulting cover would be slightly wider than necessary but would fall within tolerances and be accepted for publishing.
1 week ago
you can try this to resize your pdf files . http://www.rasteredge.com/how-to/csharp-imaging/pdf-processing/
Please sign in to add a post.