This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adobe Extract API Preprocessors by practicalPDF Inc. © 2024 by Joel Geraci is licensed under CC BY-SA 4.0 */ | |
package com.practicalpdf.ExtractPreProcessors; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Collection; | |
import org.apache.pdfbox.Loader; | |
import org.apache.pdfbox.cos.COSName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function executeSearch() { | |
var previewFilePromise = window.adobeFilePreview; | |
previewFilePromise.then(adobeViewer => { | |
adobeViewer.getAPIs().then(apis => { | |
if ($("#search-term").val().length == 0) { | |
$("#search-term").val($("#search-term").attr("placeholder")); | |
} | |
apis.search($("#search-term").val()).then(searchObject => { | |
window.searchObject = searchObject; | |
searchObject.onResultsUpdate(onResultsUpdate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewerOptions = { | |
embedMode: "FULL_WINDOW", | |
defaultViewMode: "FIT_PAGE", | |
showDownloadPDF: false, | |
showPrintPDF: false, | |
showLeftHandPanel: true, | |
showAnnotationTools: false, | |
enableSearchAPIs: true | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Version 1.4 (Updated for Acrobat DC) | |
Folder Level Javascript Created by Joel Geraci - joel@practicalpdf.com | |
*/ | |
if (app.viewerType != "Reader" || app.viewerVersion >= 11) { | |
app.addMenuItem({ | |
cName: "PPDF_fixFields", | |
cUser: 'Fix Field Appearances', | |
cParent: 'Edit', | |
cExec: "fixFields()", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This script will display the text of the field tooltip when the value is empty prompting the user to enter data | |
Add this code to the custom format script for text fields. | |
*/ | |
if (event.target.value == "") { | |
event.value = event.target.userName; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
LICENSE: | |
acrojs_dependentList.js by Joel Geraci is licensed under a Creative Commons Attribution 4.0 International License. | |
https://creativecommons.org/licenses/by/4.0/ | |
You are free to: | |
Share — copy and redistribute the material in any medium or format | |
Adapt — remix, transform, and build upon the material for any purpose, even commercially. | |
Setup: |