Polotno SDK runs the cover step of a self-publishing or print-on-demand book platform. Your platform already knows the book's trim size, page count and paper. The author designs the whole cover wrap on one canvas at the size the printer expects, and your platform exports a PDF with bleed for KDP, Lulu or your own press.
What a printer checks on a paperback cover
A paperback cover is one flat sheet: back cover, spine and front cover side by side, with bleed on the outside edges. KDP and Lulu check its size against the book, and the spine width depends on the page count and, at KDP, the paper. KDP multiplies the page count by the thickness of one page, so a 300-page 6 × 9 in paperback on white paper needs a 0.6756 in spine, and on cream paper the spine is wider. Lulu's paperback formula is page count ÷ 444 + 0.06 in. The safe area differs too: KDP asks for 0.125 in inside the trim, Lulu for 0.5 in.
Your platform holds the book record, so it works these numbers out and opens the editor at the right size. The author never types a spine width.
Key features
The whole wrap on one canvas
A Polotno page takes any size in inches or millimeters, with bleed on each side, so one page holds back cover, spine and front cover at trim size with the bleed around them. Export a PDF with bleed and it comes out at the full cover size the printer checks. The book cover designer shows a 6 × 9 in KDP wrap built this way.
Spine and wrap sized from page count and paper
Your platform computes the spine with the printer's formula and opens the editor at the full wrap size. The free KDP cover calculator and Lulu cover template generator do this for a trim size and page count you enter, and warn when the printer does not accept that page count or trim. Each one also downloads a 300 DPI guide template and opens the cover editor at that size.
Guides that stay out of the file
A guide element can be locked, sit above the design and stay out of export. Draw the fold lines and safe zones that way, and authors see where the spine and the safe area are while the PDF carries none of it. See overlays and watermarks.
Templates per series
A series shares one layout: the same fonts and title treatment, and a locked series mark. Build it once as a template and lock what stays fixed with element locking. Template variables fill the title, author and cover image from each book's record. The spine width changes from book to book with the page count, so your code places the spine and front-cover elements at each book's size, the way the demo builds its starter cover from the trim and spine it receives.
Export the PDF the printer takes
The editor's Download button exports a PDF with bleed. For press files, export PDF/X-4 or PDF/X-1a with CMYK and your printer's ICC profile from the vector export package, in the browser or on your server. See print-ready PDF export.
How it fits your platform
- Your platform holds the book record: trim size, page count, paper and printer.
- Your code computes the spine and the wrap size with that printer's formula, opens the editor at that size and places your series template on the wrap.
- The author designs on the wrap and approves a preview rendered from the same design JSON.
- Your backend exports the cover PDF with bleed. Lulu's Print API validates it against the book's print package and page count, as the Lulu integration shows; for KDP, the author uploads the PDF.
Example use cases
- Self-publishing platforms with a cover step before the author uploads to KDP or orders through Lulu.
- Print-on-demand book services selling paperbacks, notebooks and journals.
- Personalized book companies generating covers from a template and a customer record.
- Publishers and agencies producing series covers with a shared layout.
Developer benefits
- The demo's sizing code is an example you adapt: it reads trim size, spine width, bleed and safe margin from the URL.
- Both calculators show their formulas, so you can port them to your backend.
- One design JSON drives the editor, the store thumbnail and the press PDF.
- Server-side export with polotno-node, the vector export package or the Cloud Render API.
FAQ
Does the editor calculate the spine width?
Your platform does, with the printer's formula for the page count and paper, and passes the result to the editor. The free KDP and Lulu calculators show both formulas.
Which printers does it work with?
Any printer that takes a PDF cover, because your platform sets the size and bleed. The free calculators carry KDP's and Lulu's paperback rules; for another printer, take the numbers from its spec.
Does the export match Amazon KDP's cover requirements?
The export is one PDF at the full wrap size with bleed, the shape KDP asks for. Check the trim size, paper and page count you pass in against KDP's own calculator before you publish.
Can one template serve a whole series?
Yes. Template variables fill the title, author and cover image for each book, and locked elements keep the layout fixed. Your code places the spine and front cover for each book's spine width.
Does it handle hardcover books?
The calculators and the demo size paperback covers. For a hardcover case wrap, take the size from your printer's spec and open the editor at it.
Can it also make the interior?
Interior pages are multi-page designs in the same schema. The Lulu integration exports the interior and the cover as two PDFs for one print job.
