Hello, I have a problem: The API is generating A4-PDF Documents, where the content does not fit into one page. The user has to open gamma, click on page-setup and then "Scale content to fit", to fix this. is there a way to set this up in the API? (settings are currently: textMode: preserve; format: document; cardSplit: auto; textOptions.amount: medium; cardOptions.dimensions: a4). Thank you for your help!
Hey! I see what's happening - when you set cardOptions.dimensions to a4, you're telling the API to generate content sized for A4 pages at creation time. The "scale content to fit" option you're seeing in the Gamma app is actually a post-generation adjustment that isn't exposed through the API yet. A couple of things to try that might help with the content overflow: Try textOptions.amount: brief instead of medium - this tells Gamma to generate less text per card, which should reduce the chances of content spilling over the page boundaries. You could also experiment with fluid or pageless for cardOptions.dimensions instead of a4 to see if that gives you better automatic layout behavior. The full list of document dimension options is: fluid (default), pageless, letter, a4 - worth testing fluid to see if it handles your content better before exporting. Would you mind sharing your complete request body? That'd help me see if there's something else in the generation settings affecting the layout. Also curious if this is happening consistently or just with certain types of content.
