Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

HTML href >link text</a> is different from browser "tab title"

I have the following code

<div class="content">
<p>
<a href="./Arbeitszeugnisse.pdf">Arbeitszeugnisse.pdf</a>
</p>
</div>

where content looks like this

<head>
<style type="text/css">
  .content {
    width: 35%;
    float: left;
    padding: 0px;
    border: 0px solid #8511ae;
    margin-top: 0%;
    margin-bottom: 0%;
    margin-left: 2%;
    margin-right: 3%;
    background-color: #faf9d8;
}
</style>
</head>

When clicking on the link, the tab title used to be Arbeitszeugnisse.pdf.
After adding a page to the Arbeitszeugnisse.pdf with PDF Arranger 1.4.2 under Ubuntu 20.04.4 and replacing existing file with the new one, the tab title now prints

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Layout 1 - Arbeitszeugnisse.pdf

Similarly I have

<a href="./Bildungsweg.pdf">Bildungsweg.pdf</a>

Bildungsweg.pdf is made up also of multiple files that were concatenated with PDF Arranger. When clicking on Bildungsweg.pdf, the tab title prints

G0-034-F1-20190701130851 - Bildungsweg.pdf

Is there a way to get clean tab titles with no extra text?

>Solution :

You can use the command line exiftool after every PDF edition. For example:

exiftool -Title="" Bildungsweg.pdf

Leave the flag -Title="" empty, without a string. That way, the web browsers will display the filename instead of the metadata incrusted into the PDF.

Take a look at this Gist about anonymising PDFs.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading