• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Schaltfläche nutzen um direkt ein JEPG aus einem Formular zu erstellen

Community Beginner ,
Dec 07, 2022 Dec 07, 2022

Copy link to clipboard

Copied

Hallo liebe Community,

da ich ein Anfänger im Nutzen von Acrobat bin, habe ich mal eine Frage zur Nutzung der Option Schaltfläche bei der Erstellung eines Formulars.

Ich habe ein pdf Dokument welches ich in ein Formular umwandeln möchte. Eine Funktion soll sein, dass ich nach dem Befüllen des Formulars per Schaltfläche direkt ein JPEG erstellen möchte. Also quasi die Funktion "speichern unter" aus dem Menü Datei als Schaltfläche im Dokument. Mit vielen anderen Menüpunkten geht das relativ einfach im Menü Eigenschaften der Schaltfläche. Leider gibt es das nicht für die direkte Erstellung eines JPEG. Ich denke das müsste ich per Java Script machen und dazu habe ich nicht das Wissen. Kann mir dabei jemand hier helfen?

Viele Grüße

Tim

TOPICS
Edit and convert PDFs , How to , JavaScript

Views

1.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2022 Dec 07, 2022

Copy link to clipboard

Copied

Avant d'aller plus loin vous devez savoir que l'enregistrement en JPG n'est pas possible avec Acrobat Reader.

Ça requiert Acrobat Pro ou Acrobat Standard.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 07, 2022 Dec 07, 2022

Copy link to clipboard

Copied

Vielen Dank für die schnelle Antwort.

Ich benutze Acrobat DC. Können Sie mir mit meinem Problem helfen?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2022 Dec 07, 2022

Copy link to clipboard

Copied

Vous devez aussi savoir que cette action ne peut s'effetuer que dans un "privileged context": https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/index.html#priv

C'est à dire depuis un script d'application (plugin) ou bien une Action (Action Wizard).

 

Si ces contraintes sont levées il faut utiliser JavaScript et la méthode "saveAs":

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#saveas

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 07, 2022 Dec 07, 2022

Copy link to clipboard

Copied

Hallo JR Boulay, danke für die Unterstützung. Aber wie bereits geschrieben, ist meine Kenntnis über Java sehr gering. Aber ich schau mal, ob ich es mit Ihre Hilfe hin bekomme. Vielen Dank und viele Grüße.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2022 Dec 08, 2022

Copy link to clipboard

Copied

Le problème ce n'est pas le script, il est assez simple.

Mais pour ne pas vous faire de fausse joie je voudrais être certain que vous ayez compris que ça ne pourra fonctionner que sur un ordinateur avec Acrobat Pro (ou Standard) dans lequel aura été installé un plugin/addon, ce qui requiert les droits d'administrateur, ou bien avec le "Action Wizard" (Acrobat Pro seulement).

 

Ou pour simplifier : ça ne peut pas fonctionner depuis un simple bouton dans un document distribué à d'autres personnes.

 

Toujours OK ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 08, 2022 Dec 08, 2022

Copy link to clipboard

Copied

Hallo JR Boulay, Danke für die Hinweise. Ob das jetzt immernoch in Ordnung ist, weiß ich noch nicht. Gibt es keine Möglichkeit das in ein pdf Formular mit aufzunehmen ohne das man Acrobat Pro oder ähnliches hat. ALso jemand der nur den Reader nutzt, sollte das auch nutzen können. Das geht doch mit der Druck Funktion auch. Wie gesagt, ich habe nur sehr rudimentäre Kenntnisse darüber. Aber vielen Dank für die Unterstützung. Ich probiere jetzt mal den Code. Viele Grüße Tim

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 08, 2022 Dec 08, 2022

Copy link to clipboard

Copied

LATEST

Hab verstanden warum es nicht vergleichbar ist mit der Funktion Drucken. Der Reader bietet nicht speichern als jpeg. Also kann das nicht funktionieren. Meine Lernkurve steigt. Hast du eine andere Idee wie man das geschickt lösen kann?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2022 Dec 08, 2022

Copy link to clipboard

Copied

Exemple de script, il reprend le nom et l'emplacement du PDF :

 

var sPath = this.path; // get current opened PDF document path
var sPath = sPath.replace(".pdf", ""); // remove the file suffix
this.saveAs(sPath + ".jpeg", "com.adobe.acrobat.jpeg"); // replace the suffix and save as JPEG

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines