Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

html - Custom Title for Chrome's built in PDF Viewer

I am using Chrome's built-in PDF support to display PDF documents. But I am not able to customize or even remove the PDF's title.

HTML:

<iframe [src]="docURL" alt="article.title" frameborder="0"></iframe>

Chrome: enter image description here Edge: enter image description here The title in Chrome is not apt and I want to customize it. Tried using title in iframe but didn't work. Please note that Microsoft Edge do not show this title.

Inspecting in DevTools:

enter image description here

Used display:none in #title and the title disappeared. But again its not overwriting/working when written in style.css. But still couldn't figure how to customize the title.

PS: Changing metadata of the file doesn't seem a solution for me. The PDF's are uploaded by users in my app and changing the file's metadata requires editing the properties section of the file.

Any help is appreciated.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...