trying to use the SDK embed feature to embed a pdf into my Adobe Portfolio website. however I keep seeing that the embed code is not valid, whether it is my own or the sample one provided.
Thanks for using View SDK, Sorry for the inconvenience. Could you give us more context like which embed mode you are trying and snippet you are using to achieve the same?
I'm trying to use the Sized container, and using the generate code and using my URL and client id
I would appreciate it if you can share the screenshot along with the browser console of the error and the exact snippet you are using (use placeholders in place of sensitive information). This will help us reproduce the issue.
Did you ever get a good answer? I'm experiencing the same thing, I've contacted support a few times and am still unable to get this to work. Someone from Adobe support just suggested I subscribe to a Scribd account, which is maddening. I think the issue is that Portfolio needs an iframe, where the sized container code from Document Services starts with "div id" so I'm trying to figure out if there's a way to get the embed code into an iframe. I am not a coder so really struggling here.
Embed APIs should work even within an iframe. I am not sure what's portfolio though. If you are referring to Adobe PDF portfolio, please note that Embed APIs don't support opening PDF portfolio. You would need to use Adobe Acrobat or Adobe Acrobat Reader to open PDF portfolio.
So I use Adobe Portfolio to display my work Adobe Portfolio | Build your own personalized website I was told by their support staff that while they allow embed codes from Adobe Community and Adobe XD, the code needs to be in an iframe. Is there any information you can give me to help figure this out? I'm not a coder, so am really struggling with this.
Thanks for more information. I think what you are using is not Adobe PDF portfolio. Embed APIs do work in any web application. Are you running into issue when using Embed APIs in Portfolio or you are not able to find how to extend Portfolio with Embed code? If it's former we can help if you can provide more information like the error and sample code snippet that is throwing error. But, if it's latter, you might have to work with Adobe Portfolio support or forum because they know best how to extend that product.
To confirm, I'm not using PDF Portfolio. When I try to apply the code in Adobe Portfolio (website builder) I get the message "This embed code is not valid." Their service says they take embed codes from Adobe Community and Adobe XD. I have reached out to Portfolio service team and was told that the embed code only works if it's for an iframe, which led me here to see if it's possible to get a Document Service code that uses iframe.
Adobe Portfolio (online website builder) restricts embedded code to <iframe> and only from certain approved websites like YouTube and a few others. See link below for details.
This is an example of an allowable embed code where the Adobe XD presentation is hosted on Adobe's servers.
<iframe width="800" height="400" src="https://xd.adobe.com/embed/xxxxxxxx/" frameborder="0" allowfullscreen></iframe>
I am not a big fan of using PDF on the web. PDF is not a native web file and requires help from special viewers. That means your users are at the mercy of whichever browser they are using. NOTE: Browser PDF viewers rarely work well with interactive PDF content.
The alternative is to host the PDF on your own servers, drop box or whatever and provide a straight link to the PDF file for people to download and open in whichever version of Acrobat they have. And if they don't have Acrobat, they probably won't have a good experience. On the web, HTML content is better.
In case you haven't noticed, Adobe Portfolio doesn't have a dedicated community forum, although I field many such questions in Creative Cloud Services. If you need technical support, Adobe Portfolio's Helpdesk can be reached below.