Skip to main content
Participant
Sep 23, 2024 1:41 PM UTC
Answered

How to separate pages in IN_LINE mode

I use adobe pdf embed api viewer in IN_LINE mode and cannot separate pages with css. For some reason the selectors I use do not update the document. But when I use the same css selectors in the browser's inspector the pages are separated. I also have to mention that the document is generated with the below js script

function displayDocument(fileName, clientId, arrayBuffer, embedMode) {
	var adobeDCView = new AdobeDC.View({clientId: clientId, divId: "adobe-dc-view-id"});
	adobeDCView.previewFile({
		content:{promise: Promise.resolve(arrayBuffer)},
		metaData:{fileName: fileName}
	}, {embedMode: embedMode});
}

 
where the content is an arrayBuffer 

Can you suggest a way to separate pages with IN_LINE mode?

This topic is closed to new replies. Start a new post to keep the conversation going.
Raymond Camden
Raymond CamdenCorrect answer
Community Manager
Sep 23, 2024 2:34 PM UTC

There is no official support for using CSS to modify how pages look in Embed.

2 replies

Joel Geraci
Community Expert
Community Expert
Sep 23, 2024 4:34 PM UTC

Any CSS that you add won't be used inside the Embed iframe. That's just standard iframe behavior. 

Translate
Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
Sep 23, 2024 2:34 PM UTC

There is no official support for using CSS to modify how pages look in Embed.

Translate