Home

"Tab Title" should show PDFs Title Text of the file if set

%3CLINGO-SUB%20id%3D%22lingo-sub-686775%22%20slang%3D%22en-US%22%3E%22Tab%20Title%22%20should%20show%20PDFs%20Title%20Text%20of%20the%20file%20if%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-686775%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20upcomming%20version%20of%20Edge%20browser%20should%20show%20PDFs%20document%20title%2C%20if%20set%2C%20instead%20of%20only%20showing%20the%20PDFs%20file%20name.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESometimes%20the%20Name%20of%20a%20PDF%20file%20could%20be%20very%20%22simple%22%2C%20e.g.%20doc4711.pdf.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20on%20HTML%20documents%2C%20the%20%22Tab%20Title%22%20Displays%20the%20%22text%20of%20the%20%3CTITLE%3EHello%3C%2FTITLE%3E%20tag%22%2C%20i%20would%20like%20to%20have%20this%20behavior%20when%20Opening%20PDF%20documents%20in%20Edge%2C%20too.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-688888%22%20slang%3D%22en-US%22%3ERe%3A%20%22Tab%20Title%22%20should%20show%20PDFs%20Title%20Text%20of%20the%20file%20if%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-688888%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F358806%22%20target%3D%22_blank%22%3E%40mhuellwegen%3C%2FA%3E%26nbsp%3B-%20great%20question%20and%20ask.%20I%20dug%20in%20to%20this%20and%20discovered%26nbsp%3B%3CSPAN%3Ethe%26nbsp%3B%3CSTRONG%3EPDF%3C%2FSTRONG%3E%26nbsp%3Bdocument%20should%20have%20the%26nbsp%3B%3CSTRONG%3ETitle%20metadata%3C%2FSTRONG%3E%26nbsp%3Bset.%20Afterwards%2C%20a%20browser%20(not%20just%20Edge%20Insider)%20will%26nbsp%3Buse%20it%20for%20rendering%20the%26nbsp%3B%3CSTRONG%3Etab%20title%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20short%2C%20the%20PDF%20author%2Fcreator%20needs%20to%20set%20the%20data%20field.%20Via%20Acrobat%20Pro%2C%20open%20the%26nbsp%3B%3CSTRONG%3EPDF%3C%2FSTRONG%3E%26nbsp%3Band%20select%20File%20-%26gt%3B%26nbsp%3B%3CSTRONG%3EProperties%3C%2FSTRONG%3E%26nbsp%3B-%26gt%3B%20Description%20and%20then%20edit%20the%26nbsp%3Bmetadata%26nbsp%3Btitle.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20the%20way%2C%20%3CSPAN%3EFirefox%20(66.0.3)%20showing%20both%20in%20the%20format%20%22%3CTITLE%3E-%20%26lt%3Band%20filename.pdf%3D%22%22%26gt%3B%22as%20tab-label%2C%20what%20i%20think%20is%20to%20much.%26lt%3B%2Fand%26gt%3B%3C%2FTITLE%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThere%20is%20a%20little%20workaround%20for%20MS%20Edge%3A%20If%20the%20source%20for%20the%20PDF%20is%20an%20URL%20to%20e.g.%20an%20ASPX-Script%2C%20MS%20Edge%20make%20use%20%3CFOLDERS%3Eof%20the%20last%20name%20(the%20last%20part%20of%20the%20URL%20before%20Parameters%2C%20ing%20assumthis%20is%20the%20PDFs%20filename)%20%3CSPAN%3Efor%20rendering%3C%2FSPAN%3E%20the%20tab%20title%20%2C%20while%20behind%20this%20szenario%20a%20default.aspx%20script%20(not%20mentioned%20in%20the%20URL%20delivers)%20the%20PDF.%3C%2FFOLDERS%3E%20So%20you%20can%20Play%20with%20the%20last%20Folders%20Name%20as%20a%20propper%20title.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBy%20the%20way%2C%20extra%20URL%20parameters%20behind%20a%20%22%3F%22%20Are%20also%20ignored%20for%20rendering%20the%20tab%20title.%3C%2FSPAN%3E%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-689767%22%20slang%3D%22en-US%22%3ERe%3A%20%22Tab%20Title%22%20should%20show%20PDFs%20Title%20Text%20of%20the%20file%20if%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-689767%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F328980%22%20target%3D%22_blank%22%3E%40DarrenMH%3C%2FA%3E%20-%20Thanks%26nbsp%3B%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EBefore%20i've%20posted%20my%20suggestion%2C%20i%20double%20checked%20this%20%22missing%22%20behavior%20on%20MS%20Edge%20(44.17763.1.0).%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%3E%3CBR%20%2F%3EWhile%20e.g.%20Chrome%20(74.0.3729.169)%3C%2FFONT%3E%20does%20it%20best%20%22TitleOnly%22%20as%20Tab-Label%2C%20i%20realised%20that%20my%20MS%20Edge%20Browser%20does%20not%20care%20about%20the%20%22MetaTitle%22%20in%20the%20metadata%20of%20the%20PDF%2C%20also%20not%2C%20if%20the%20title%20is%20proper%20set%20with%20Acrobat%20or%20a%20PDF%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20the%20way%2C%20%3CSPAN%3EFirefox%20(66.0.3)%20showing%20both%20in%20the%20Format%20%22Title%20-%20and%20Filename.pdf%22%20as%20Tab-Label%2C%20what%20i%20think%20is%20to%20much.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThere%20is%20a%20little%20workaround%20for%20MS%20Edge%3A%20If%20the%20source%20for%20the%20PDF%20is%20an%20URL%20to%20e.g.%20an%20ASPX-Script%2C%20MS%20Edge%20make%20use%20of%20the%20last%20Folders%20name%20(the%20last%20part%20of%20the%20URL%20before%20Parameters%2C%20assuming%20this%20is%20the%20PDFs%20filename)%20%3CSPAN%3Efor%20rendering%20the%20tab%20title%3C%2FSPAN%3E%2C%20while%20behind%20this%20szenario%20a%20default.aspx%20script%20(not%20mentioned%20in%20the%20URL)%20delivers%20the%20PDF.%20So%20you%20can%20Play%20with%20the%20last%20Folders%20Name%20as%20a%20propper%20title.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBy%20the%20way%2C%20extra%20URL%20Parameters%20behind%20a%20%22%3F%22%20are%20also%20ignored%20for%20rendering%20the%20tab%20title.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-690546%22%20slang%3D%22en-US%22%3ERe%3A%20%22Tab%20Title%22%20should%20show%20PDFs%20Title%20Text%20of%20the%20file%20if%20set%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-690546%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20info%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F358806%22%20target%3D%22_blank%22%3E%40mhuellwegen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20don't%20have%20access%2C%20for%20example%2C%20to%20Acrobat%20Pro%2C%20to%20play%20with%20PDF%20metadata.%20I'll%20get%20a%20bug%2Frequest%20on%20this%20this%20morning.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAgain%2C%20thanks%20for%20the%20details%2C%20very%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E
mhuellwegen
New Contributor

The upcomming version of Edge browser should show PDFs document title, if set, instead of only showing the PDFs file name.

 

Sometimes the Name of a PDF file could be very "simple", e.g. doc4711.pdf.

 

While on HTML documents, the "Tab Title" Displays the "text of the <title>Hello</title> tag", i would like to have this behavior when Opening PDF documents in Edge, too.

3 Replies

Hi @mhuellwegen - great question and ask. I dug in to this and discovered the PDF document should have the Title metadata set. Afterwards, a browser (not just Edge Insider) will use it for rendering the tab title.

 

In short, the PDF author/creator needs to set the data field. Via Acrobat Pro, open the PDF and select File -> Properties -> Description and then edit the metadata title.

 

Hope this helps.

 

 

Hi @DarrenMH - Thanks  for your reply.

 

Before i've posted my suggestion, i double checked this "missing" behavior on MS Edge (44.17763.1.0).


While e.g. Chrome (74.0.3729.169)
does it best "TitleOnly" as Tab-Label, i realised that my MS Edge Browser does not care about the "MetaTitle" in the metadata of the PDF, also not, if the title is proper set with Acrobat or a PDF library.

 

By the way, Firefox (66.0.3) showing both in the Format "Title - and Filename.pdf" as Tab-Label, what i think is to much.

 

There is a little workaround for MS Edge: If the source for the PDF is an URL to e.g. an ASPX-Script, MS Edge make use of the last Folders name (the last part of the URL before Parameters, assuming this is the PDFs filename) for rendering the tab title, while behind this szenario a default.aspx script (not mentioned in the URL) delivers the PDF. So you can Play with the last Folders Name as a propper title.

 

By the way, extra URL Parameters behind a "?" are also ignored for rendering the tab title.

Great info@mhuellwegen 

 

I don't have access, for example, to Acrobat Pro, to play with PDF metadata. I'll get a bug/request on this this morning.

 

Again, thanks for the details, very helpful.