Skip to main content
Participant
September 23, 2024
Answered

How to separate pages in IN_LINE mode

  • September 23, 2024
  • 2 replies
  • 479 views

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 has been closed for replies.
Correct answer Raymond Camden

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

2 replies

Joel Geraci
Community Expert
Community Expert
September 23, 2024

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

Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
September 23, 2024

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