showBleedArea in appConfig is not reflecting in the Embed SDK Editor
Hello,
I am currently integrating the Adobe Express Embed SDK into my application.
I am trying to configure the editor settings using appConfig. However, the showBleedArea property seems to be ignored, and the bleed area does not appear in the editor regardless of the value I set.
SDK Version: 4
const appConfig = {
selectedCategory: "templates",
callbacks: {
onCancel: () => {
console.log("User cancelled");
},
onPublish: async (intent, publishParams) => {
const asset = publishParams.asset?.[0];
if (!asset) return;
var data = asset.data;
const m = /^data:application\/pdf;base64,(.+)$/.exec(data);
const base64Body = m ? m[1] : data;
await fetch("/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
fileName: asset.name || "document.pdf",
mimeType: asset.type || "application/pdf",
data: base64Body,
}),
});
console.log("PDF sent to server");
},
onError: (err) => {
console.error("Express error", err);
},
},
showBleedArea: true,
showPageMargin: true,
};
const exportConfig = [
{
id: "save-pdf",
label: "print",
action: { target: "publish" },
style: { uiType: "button" },
},
];