display the pdf file in the html page

I want to display file pdf in the page html,it works well but the problems are Black background showing in PDF and it does not display the full height of the file pdf.

this image to explain the problems.

this is my css code

iframe {
    margin: 0px;
    padding: 0px;
    background: blue;
    display: block;
    border: 0px;
    background-color: #FFF;
    height: 100%;
    width: 100%;

html code.

<iframe id="myFrame" ng-src="{{getIframeSrc(ressource.fileName)}}"  >

javascript code

$scope.getIframeSrc = function (videoId) {
    return 'data/Formations/'+$scope.lesondetaille.section.indexurl+'/' + 

I tried to add in iframe frameBorder="0" but it does not work.is there any solution to remove background color and embed PDF at full height?.

thank you in advance

111 thoughts on “display the pdf file in the html page”

Leave a Comment