{"id":1415,"date":"2017-01-03T23:37:50","date_gmt":"2017-01-03T22:37:50","guid":{"rendered":"https:\/\/vielhuber.de\/?p=1415"},"modified":"2022-02-15T15:37:57","modified_gmt":"2022-02-15T14:37:57","slug":"pdf-formularfelder-massenweise-umbenennen","status":"publish","type":"post","link":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/","title":{"rendered":"PDF-Formularfelder massenweise umbenennen"},"content":{"rendered":"<p>Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser kann man nicht nur beliebigen JavaScript-Code ausf\u00fchren, sondern auch auf s\u00e4mtliche Inhalte innerhalb des PDFs (unter anderem auf Formularfelder) zugreifen. Da keine native Funktion zum Umbenennen in der JS-API existiert, werden die Formularfelder mit allen Eigenschaften kopiert und mit neuem Namen angelegt.<\/p>\n<p><!--more--><\/p>\n<p>Die Konsole muss zun\u00e4chst in Acrobat unter \"Bearbeiten &gt; Einstellungen...\" unter \"JavaScript\" aktiviert werden:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png\" alt=\"PDF-Formularfelder massenweise umbenennen\" \/><\/p>\n<p>Mit \"STRG + J\" aktiviert man nun den JavaScript-Debugger und w\u00e4hlt unterhalb bei \"Anzeigen:\" die \"Konsole\" aus. Will man nun beliebigen JavaScript-Code ausf\u00fchren, gibt man diesen ein, markiert diesen (das ist ein wichtiger Schritt, den die meisten vergessen) und f\u00fchrt ihn durch \"STRG + ENTER\" aus. Das Ergebnis erscheint dann direkt darunter:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/vielhuber.de\/wp-content\/uploads\/621.png\" alt=\"PDF-Formularfelder massenweise umbenennen\" \/><\/p>\n<p>Folgendes Snippet benennt\u00a0nun alle Formularfelder so um, dass Punkte (\".\") durch Hashes (\"#\") ersetzt werden:<\/p>\n<p class=\"githubgist\" data-gist-file=\"script.js\">61cbdaf8b97fb21952e382d2e88d50d4<\/p>\n<p>Das Script kommt mit allen Formularfeldtypen (u.a. Checkboxen und gruppierten Radio-Buttons) zurecht.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/vielhuber.de\/wp-content\/uploads\/326.png\" alt=\"PDF-Formularfelder massenweise umbenennen\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser kann man nicht nur beliebigen JavaScript-Code ausf\u00fchren, sondern auch auf s\u00e4mtliche Inhalte innerhalb des PDFs (unter anderem auf Formularfelder) zugreifen. Da keine native Funktion zum Umbenennen in der JS-API existiert, werden die Formularfelder mit allen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"gtbabel_prevent_lngs":"","gtbabel_alt_lng":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-1415","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-blog"},"acf":[],"yoast_head":"<title>PDF-Formularfelder massenweise umbenennen<\/title>\n<meta name=\"description\" content=\"Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser k...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PDF-Formularfelder massenweise umbenennen\" \/>\n<meta property=\"og:description\" content=\"Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser kann\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/\" \/>\n<meta property=\"og:site_name\" content=\"Vielhuber David\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-03T22:37:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-15T14:37:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png\" \/>\n<meta name=\"author\" content=\"David\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vielhuber\" \/>\n<meta name=\"twitter:site\" content=\"@vielhuber\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"David\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/\"},\"author\":{\"name\":\"David\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\"},\"headline\":\"PDF-Formularfelder massenweise umbenennen\",\"datePublished\":\"2017-01-03T22:37:50+00:00\",\"dateModified\":\"2022-02-15T14:37:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/\"},\"wordCount\":170,\"publisher\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\"},\"image\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/999.png\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/\",\"name\":\"PDF-Formularfelder massenweise umbenennen\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/999.png\",\"datePublished\":\"2017-01-03T22:37:50+00:00\",\"dateModified\":\"2022-02-15T14:37:57+00:00\",\"description\":\"Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser kann\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/999.png\",\"contentUrl\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/999.png\",\"width\":791,\"height\":577},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/pdf-formularfelder-massenweise-umbenennen\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vielhuber.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PDF-Formularfelder massenweise umbenennen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#website\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/\",\"name\":\"Vielhuber David\",\"description\":\"Full-Stack Developer\",\"publisher\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vielhuber.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\",\"name\":\"David\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\",\"contentUrl\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\",\"width\":700,\"height\":552,\"caption\":\"David\"},\"logo\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/vielhuber\"]}]}<\/script>","yoast_head_json":{"title":"PDF-Formularfelder massenweise umbenennen","description":"Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser k...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/","og_locale":"de_DE","og_type":"article","og_title":"PDF-Formularfelder massenweise umbenennen","og_description":"Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser kann","og_url":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/","og_site_name":"Vielhuber David","article_published_time":"2017-01-03T22:37:50+00:00","article_modified_time":"2022-02-15T14:37:57+00:00","og_image":[{"url":"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png","type":"","width":"","height":""}],"author":"David","twitter_card":"summary_large_image","twitter_creator":"@vielhuber","twitter_site":"@vielhuber","twitter_misc":{"Verfasst von":"David","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#article","isPartOf":{"@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/"},"author":{"name":"David","@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef"},"headline":"PDF-Formularfelder massenweise umbenennen","datePublished":"2017-01-03T22:37:50+00:00","dateModified":"2022-02-15T14:37:57+00:00","mainEntityOfPage":{"@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/"},"wordCount":170,"publisher":{"@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef"},"image":{"@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#primaryimage"},"thumbnailUrl":"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png","articleSection":["Blog"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/","url":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/","name":"PDF-Formularfelder massenweise umbenennen","isPartOf":{"@id":"https:\/\/vielhuber.de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#primaryimage"},"image":{"@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#primaryimage"},"thumbnailUrl":"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png","datePublished":"2017-01-03T22:37:50+00:00","dateModified":"2022-02-15T14:37:57+00:00","description":"Kommt man wie ich in die Bredouille, tausende Formularfeldnamen umzubenennen, bietet sich die in Acrobat enthaltene JavaScript-Konsole an. In dieser kann","breadcrumb":{"@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#primaryimage","url":"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png","contentUrl":"https:\/\/vielhuber.de\/wp-content\/uploads\/999.png","width":791,"height":577},{"@type":"BreadcrumbList","@id":"https:\/\/vielhuber.de\/blog\/pdf-formularfelder-massenweise-umbenennen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vielhuber.de\/"},{"@type":"ListItem","position":2,"name":"PDF-Formularfelder massenweise umbenennen"}]},{"@type":"WebSite","@id":"https:\/\/vielhuber.de\/#website","url":"https:\/\/vielhuber.de\/","name":"Vielhuber David","description":"Full-Stack Developer","publisher":{"@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vielhuber.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef","name":"David","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","url":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","contentUrl":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","width":700,"height":552,"caption":"David"},"logo":{"@id":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg"},"sameAs":["https:\/\/x.com\/vielhuber"]}]}},"_links":{"self":[{"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/posts\/1415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/comments?post=1415"}],"version-history":[{"count":15,"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/posts\/1415\/revisions"}],"predecessor-version":[{"id":3257,"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/posts\/1415\/revisions\/3257"}],"wp:attachment":[{"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/media?parent=1415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/categories?post=1415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vielhuber.de\/vi\/wp-json\/wp\/v2\/tags?post=1415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}