JS Rename PDF using app.trustedFunction()
I'm trying to create a simple rename Dialog that allows the user to rename the PDF and save it to a set folder location then close the doc.
I'm getting this error in the console:
this.saveAs is not a function
4:App:Exec
At the top of my script I have the trusted funtion:
var JSRename = app.trustedFunction(function(myinfo)
app.beginPriv();
this.saveAs("/c/hold/"+ myinfo +".pdf");
this.closeDoc(true); // close the doc, no notification
app.endPriv();
At the end of the Dialog code I call the trusted function:
if("ok" == RenamePDF.DoDialog())
JSRename(RenamePDF.stredt1);
//console.println("edt1:" + RenamePDF.stredt1);
At the bottom on the script I have the code to create a menu item that calles the Dialog:
app.addToolButton({
cName: "JSRename",
cLabel: "JSRenamePDF",
cEnable: "event.rc = (app.doc != null);",
cExec: "MyRename();"});
If I change my menu cExec to;
cExec: "JSRename('test');"});
My trusted function works fine. Is it possible to pass the value back from the Dialog tot he trusted fuction?
Hi Aandi,
If I run:
var JSRename = app.trustedFunction(function(myinfo)
app.beginPriv();
this.saveAs("/c/hold/"+ myinfo +".pdf");
this.closeDoc(true); // close the doc, no notification
app.endPriv();
app.addToolButton({
cName: "JSRename",
cLabel: "JSRenamePDF",
cEnable: "event.rc = (app.doc != null);",
cExec: "JSRename('myTestDoc');"});
A menu button will appear and when I click it the active PDF docuemnt will be saved to the C:\hold\ folder as myTestDoc.pdf.
I will do some alerts to check id the data in the Dialog is being passed to the trusted function.
Similar Messages
-
Adding a link in PDF using itext
I am adding a link in PDF using itext and opening the link from the final created pdf using app.launchURL and app.getURL
it works fine on windows XP but does nothing on MAC OSX /IOSHi Lynn
And here I was about to suggest you review the link below.
Silly me.
Click
here to read the article
Sincerely... Rick -
Applescript or workflow to extract text from PDF and rename PDF with the results
Hi Everyone,
I get supplied hundreds of PDFs which each contain a stock code, but the PDFs themselves are not named consistantly, or they are supplied as multi-page PDFs.
What I need to do is name each PDF with the code which is in the text on the PDF.
It would work like this in an ideal world:
1. Split PDF into single pages
2. Extract text from PDF
3. Rename PDF using the extracted text
I'm struggling with part 3!
I can get a textfile with just the code (using a call to BBEDIT I'm extracting the code)
I did think about using a variable for the name, but the rename functions doesn't let me use variables.Hello
You may also try the following applescript script, which is a wrapper of rubycocoa script. It will ask you choose source pdf files and destination directory. Then it will scan text of each page of pdf files for the predefined pattern and save the page as new pdf file with the name as extracted by the pattern in the destination directory. Those pages which do not contain string matching the pattern are ignored. (Ignored pages, if any, are reported in the result of script.)
Currently the regex pattern is set to:
/HB-.._[0-9]{6}/
which means HB- followed by two characters and _ and 6 digits.
Minimally tested under 10.6.8.
Hope this may help,
H
_main()
on _main()
script o
property aa : choose file with prompt ("Choose pdf files.") of type {"com.adobe.pdf"} ¬
default location (path to desktop) with multiple selections allowed
set my aa's beginning to choose folder with prompt ("Choose destination folder.") ¬
default location (path to desktop)
set args to ""
repeat with a in my aa
set args to args & a's POSIX path's quoted form & space
end repeat
considering numeric strings
if (system info)'s system version < "10.9" then
set ruby to "/usr/bin/ruby"
else
set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
end if
end considering
do shell script ruby & " <<'EOF' - " & args & "
require 'osx/cocoa'
include OSX
require_framework 'PDFKit'
outdir = ARGV.shift.chomp('/')
ARGV.select {|f| f =~ /\\.pdf$/i }.each do |f|
url = NSURL.fileURLWithPath(f)
doc = PDFDocument.alloc.initWithURL(url)
path = doc.documentURL.path
pcnt = doc.pageCount
(0 .. (pcnt - 1)).each do |i|
page = doc.pageAtIndex(i)
page.string.to_s =~ /HB-.._[0-9]{6}/
name = $&
unless name
puts \"no matching string in page #{i + 1} of #{path}\"
next # ignore this page
end
doc1 = PDFDocument.alloc.initWithData(page.dataRepresentation) # doc for this page
unless doc1.writeToFile(\"#{outdir}/#{name}.pdf\")
puts \"failed to save page #{i + 1} of #{path}\"
end
end
end
EOF"
end script
tell o to run
end _main -
Hi All, I am looking for a way or a PDF annotator app to use in a tablet that don't allow deletion as I edit. I need to use in a controlled process that don't allow user to delete or erase edits once a mistake is made or a rewrite is needed. Thank you
See How to call Adobe Acrobat 9 APIs to OCR the PDFs through .NET reply 4.
-
How do I print just one page of a .pdf using the android e-Print app?
How do I print just one page of a .pdf using the android e-Print app?
Hello,
I see that you're having an issue with printing just one page from the E-print app.
Unfortunately, on an android device, you do not have the feature to select how many pages you want to print
Thanks! -
I am having problems sending emails when using apps. I dont receive any emails when I try to send documents such as pdf or pictures. I tried sending it to my other email account but I don't get any email. What is wrong?
System Preferences > Network > your-connection-medium > (Assist me) > ( Diagnostics )
This sometimes provides additional helpful information, sometimes not so much. -
Correct use of app.trustedFunction ?
Hello,
I have a function1 which launch a diaglog when a user clicks on the button. Function1 is in the folder script. For the click event, I have: script1.function1();
However, the dialog box has the title "JavaScript Window" and the warning "Warning: JavaScript Window".
I searched and follow the suggestion in the forum. I created a app.trusted fuction as below:
var vDialog = app.trustedFunction(function() {
app.beginPriv();
launchDialog();
app.endPriv();
In the click event, I have:
event.target.vDialog();
However, this doesn't work. Could someone points out for me where the mistake is? Also, is there a way to change the windown title, instead of "JavaScript Window", it says "Help Information"?
Thank you.You might want to look at the documentation for the app.trustPropagatorFunction:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.168.html
Example #2 shows how you can prevent the JavaScript warning in the title. To set the title of the dialog, set the "name" property (in the description object) to the string you want to use. -
Problem with checking file existence by using app.openDoc
Hi Folks,
I have to create a script for a big project with many PDF's. (Just like Ingrimm - it's the same company http://forums.adobe.com/thread/747022?tstart=0) This PDF's are made of scanned images. I need to rename the files to names that are extracted from within the file. This is working without problems.
Now there could be the case, that a filename exists already. I don't want the files to be overwritten, so the idea is, that already existing filenames are saved as filename_1, filename_2, etc... (Before I merged them, but this isn't what is wanted.)
For this reason I need to use app.openDoc to check, if a file exists. Yesterday my script worked fine, but after starting it today, I discovered that it started again to overwrite files which are already existing.
I added an app.alert to my catch method to see what error is thrown. The message is: 'NotAllowedError: Security settings prevent access to this property or method.'.
After using google, I found out, that Acrobat is not finding any files. But I checked and there are files which should be doubled.
I have no idea how to fix that problem. Anybody here who can help me?
Regards,
Steffi
* regular expression for search
var idNumber = /08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d/g;
* if possible this function extracts the searched number as string
* @param rematch string which should be searched in document
* @return null if rematch is not found or string if rematch is found
function ExtractFromDocument(reMatch) {
try {
var Out = new Object();
for (var i = 0; i < 1; i++)
numWords = this.getPageNumWords(i);
var PageText = "";
for (var j = 0; j < 30;j++) {
var word = this.getPageNthWord(i,j,false);
PageText += word;
var strMatches = PageText.match(reMatch);
if (strMatches == null) continue;
return strMatches;
} catch(e)
app.alert("Processing error: "+e)
* tries to load given filename (extracted number)
* @param filename string of file which should be checked
* @param n number to iterate while checking for files
* @return true if file exists or false if not
function checkIfFileExists(filename, n) {
var existingDoc = false;
try {
if( n == 0) {
var checkDoc = app.openDoc({cPath : "../GAG-out/"+filename+"-001.pdf"});
} else {
var checkDoc = app.openDoc({cPath : "../GAG-out/"+filename+"-001_"+n+".pdf"});
checkDoc.closeDoc();
existingDoc = true;
} catch (e) {
app.alert("Processing error: "+e)
if( existingDoc == true ) {
n = n+1;
n = checkIfFileExists(filename, n);
return n;
var filename = ExtractFromDocument(idNumber);
if(filename == null || filename == undefined) {
filename = Math.round(Math.random()*999999999999);
this.extractPages({nEnd:(this.numPages-1), cPath : "../GAG-out/n_"+filename+".pdf"});
} else {
fileExistence = checkIfFileExists(filename, 0);
if(fileExistence != 0) {
this.extractPages({nEnd:(this.numPages-1), cPath : "../GAG-out/"+filename+"-001_"+fileExistence+".pdf"});
} else {
this.extractPages({nEnd:(this.numPages-1), cPath : "../GAG-out/"+filename+"-001.pdf"});Sorry, I marked it as bold text but unfortunately it happens to be unformatted
It's the app.openDoc within my function checlIfFileExists:
try {
if( n == 0) {
var checkDoc = app.openDoc({cPath : "../GAG-out/"+filename+"-001.pdf"});
} else {
var checkDoc = app.openDoc({cPath : "../GAG-out/"+filename+"-001_"+n+".pdf"});
checkDoc.closeDoc();
existingDoc = true;
} catch (e) {
app.alert("Processing error: "+e) -
Error while trying to export a report into PDF using JRC (Linux env)
Hi all,
I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
PrintOutputController controller = reportClientDoc.getPrintOutputController();
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
I got this error message:
19/02/2009 10:21:37 b INFO PdfExporter: PdfDocumentModeller.modelPage (page 1)
19/02/2009 10:21:37 b INFO PdfExporter: Modelling page
19/02/2009 10:21:37 b INFO PdfExporter: Creating document manager, text modeller and image modeller.
19/02/2009 10:21:37 b ERROR PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
java.lang.IllegalArgumentException: Data type is not supported.
at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
Any solution (or workaround) would be highly appreciated!
Thank you!
PS Maybe this is relevant: I use a MySQL database!
Edited by: Sandila Catalin on Feb 19, 2009 10:01 AMWhat kind of image do you have in the report?
Do you have -Djava.awt.headless=true specified for the Java JVM option?
Sincerely,
Ted Ueda -
She downloads the file from the site, and gets the old version of the file instead of the one she just uploaded. I tried it myself and everything is done correctly: the new file is on the server but download keeps displaying the old version. Dreamweaver ticks off the bytes as they are going upstream. I can RDP to the server and see that the newer version is there (by datetime stamp). She is using IE 8 if relevant.
This only happens with pdf, no caching is turned on in IIS6 - all content updates are instant.
I have gone in to the temp internet files and deleted the cached version of the file and emptied the trash (Win XP) but it still serves the old version.
This issue has been reported by other users, but I thought it was user error until it was staring me in the face.
My final verification was to upload the new document with a new name, delete the old document, and rename the new name to the old name - after that it delivered the new document
How do I tell the (non-tech) user fix this?
I've seen references to this on other sites (now that I know it is real, I dug deeper) but the solutions proposed mostly seem to involve changing the query string by adding somthing to the end of it.
This is out of reach of my user.
I can't be the first person to encounter this right?
And note that I went into the server... the document was uploaded, and IIS caching is off.
I was told by someone here (and I can't reproduce it in my office) that I should tell the user to go to Adobe Reader | Edit | Preferences | Internet.
Then tell her to uncheck all three boxes (display in browser, allow fast, and allow speculative)
But I don't see how that would fix it - remember that I deleted the pdf from the internet cache and that didn't solve it.
Thanks,
-Chris C. 1972I've faced this before too.
I've tried many different approaches but the most reliable way I've ever found of handling it is to rename the new PDF each time (e.g. adding the revision date into the filename) and update the link in the web page to point to the renamed PDF.
Works every time.
Chris C. 1972 wrote:
I was told by someone here (and I can't reproduce it in my office) that I should tell the user to go to Adobe Reader | Edit | Preferences | Internet.
Then tell her to uncheck all three boxes (display in browser, allow fast, and allow speculative)
But I don't see how that would fix it
Nor me. -
Plugin for opening a PDF in app but editing & saving outside app?
Hi all, first of all thank you for providing such helpful commentary on the DPS solution so far.
My client is a major publisher of educational textbooks. They are repurposing content currently to distribute globally and have a sizeable offering of potential digital products. They have been thrilled with the DPS tools so far but we have hit a major snag.
One requirement of their offering is that learners can actually open and edit pdfs (for worksheets and exercises) from within the apps and make annotations, highlights etc. Also fill in text areas, and submit those activities to their teachers via email etc.
I got the PDF opening in-app which we managed to get right fairly easily using the HTMLResources.zip technique which is a URL link to HTMLResources / pdfname.pdf as you know. It is static and cant be edited or saved but viewed perfectly. So we tried opening the PDF using a link to another app, for example GoodReader, hoping that they could open the pdf in Goodreader and there make changes and interact with it. This also wouldn't work. We tried
gropen://
method (opens a pdf into GoodReader) but it looks for a file locally on the device (which isn't there obviously) as it wasn't bundled in the folio, and it could find one in the HTMLResources file either using that code I tried gropen://HTMLResources/pdfname.pdf too.
I check the URL scheme for Apple devices, in particular the iPad and iPhone and loads of cool things are supported like the ability to call phones, sms, link to app store etc, but not an option to open a file into another app. so that something like this code is supported:
ghttp://www.samplepdf.com/sample.pdf
Is there a solution here that you know of, perhaps a plugin thats exists or can be written for this? This client has scores of books and right now they are looking at scrapping the Adobe DPS tools due to this lack of functionality and going the custom app route.
Thanks for your time, any input would be greatly appreciated.
EvaAcrobat is only able to work with PDF files. You could convert a jpeg or tiff into a PDF using Acrobat, but I personally would either do a little math to determine if it is print-quality or drop it into InDesign at the size it will need to print and see if it works.
If you have InDesign installed you can use that program to do your layout using the raster images and check their effective ppi using the links panel:
Using InDesign might make most sense for you as you can do the layout for raster images here, and for PDF documents that clients have prepared you could use Acrobat.
The advantages of using both like this are that they have very powerful industry-standard prepress features. These prepress features can do most of your work for you by checking for low resolution images, colors out of gamut, missing links, type embedding problems etc.
More on prepress in InDesign here, this is for CS3, but the process is essentially the same in CS6: (I would skip through to 2:00)
And prepress in Acrobat XI:
&lt;/body&gt; -
Problem while Converting TiFF to PDF using OCR
Hi,
We have installed Adobe LiveCycle8.2 PDF Generator ES trail version, Acrobat Pro Extended 9.0.
OS: Windows XP Service Pack3,
App Server: WebSphere 6.1.0.19
DB: SQL Server 2005 SP2.
We are getting following error while converting TIFF images to PDF Using OCR.
Error message on AdminUI screen:
"Error Code:1000
Error Message: ALC-PDG-001-000-Conversion failed because of an exception. Connection to failed service."
Error messages in server log file:
[10/10/08 18:16:50:015 IST] 00000043 ProcessResour W com.adobe.service.ProcessResource$ErrorReaderThread run BMC024: Service Native2PDFSvc: Process ProcessResource(name=pdfgen.exe,pid=0) terminated abnormally with error code {3}
[10/10/08 18:16:50:218 IST] 00000035 ProcessResour A com.adobe.service.ProcessResource startProcess BMC505: Service Native2PDFSvc: Starting native process with command line "C:\\Program Files\\ibm\\WebSphere\\AppServer1\\profiles\\AppSrv01\\installedApps\\HDDLGSDMNK8897Node0 1Cell\\adobe\\server1\\Native2PDFSvc\\bin\\dll\\pdfgen.exe" PDF-NAf6c310002 -beginExecutable "C:\\Program Files\\IBM\\WebSphere\\AppServer1\\java\\jre\\bin\\javaw.exe" -endExecutable -Xmx64m -cp "C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-appmon.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-appmondata.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-bslj.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-csa.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-generatepdf-client.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-common-jaxb.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-common.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-commonbmc.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-idl-bmc-websphere.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-idl-bmc.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-utilities.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/avalon-framework-4.1.5.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/comfyj-2.4.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jacorb.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jaxb-api.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jaxb-impl.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jaxb-libs.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jniw2.9.5_acrobat1.1.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01CeError message continuation:
[10/10/08 18:16:50:296 IST] 00000044 SystemOut O Command line '"C:\Program Files\IBM\WebSphere\AppServer1\java\jre\bin\javaw.exe"'
[10/10/08 18:16:50:437 IST] 00000035 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "doRequiresNew" on bean "BeanId(LiveCycle8#adobe-dscf.jar#EjbTransactionBMTAdapter, null)". Exception data: java.lang.IllegalStateException: Connection to failed service.
at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java:87)
at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceFromPool(ConnectionFa ctoryManagerPeer.java:79)
at com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactor yManagerPeerImpl.java:84)
at com.adobe.service.ConnectionFactoryRmiAdapter.getConnection(ConnectionFactoryRmiAdapter.j ava:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
at java.security.AccessController.doPrivileged(AccessController.java:241)
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1123)
at $Proxy80.getConnection(Unknown Source)
at com.adobe.service._ConnectionFactoryRemote_Stub.getConnection(_ConnectionFactoryRemote_St ub.java:58)
at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.convertToPdf(NativeToPDFTransacti onCallback.java:185)
at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.doInTransaction(NativeToPDFTransa ctionCallback.java:163)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doRequiresNew(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)
at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute(DefaultTransactionT emplate.java:79)
at com.adobe.pdfg.BMCCaller.invokeInSMT(BMCCaller.java:769)
at com.adobe.pdfg.Native2PdfCaller.callNativeBMC(Native2PdfCaller.java:779)
at com.adobe.pdfg.Native2PdfCaller.createPDF(Native2PdfCaller.java:298)
at com.adobe.pdfg.GeneratePDFImpl.createPDFCommon(GeneratePDFImpl.java:342)
at com.adobe.pdfg.GeneratePDFImpl.createPDF(GeneratePDFImpl.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTran sactionBMTAdapterBean.java:197)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doBMT(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:95)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:102)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.aes.web.create.CreatePDFAct.createPDF(CreatePDFAct.java:383)
at com.adobe.aes.web.create.CreatePDFAct.createPDF2(CreatePDFAct.java:402)
at com.adobe.aes.web.create.CreatePDFAct.execute(CreatePDFAct.java:174)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.adobe.aes.web.AesActionServlet.service(AesActionServlet.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.adobe.idp.um.auth.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:154)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java: 190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.jav a:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConn ectionInitialReadCallback.java:214) -
Problem using app.launchURL with Adobe Reader X
Hello -
Have an application that is going live in a couple of days. In many of our fillable PDF forms we use:
app.launchURL("http://www.yoursitehere.com", true);
This worked fine until our company pushed out Adobe Reader X to all of our employees. Now the above function does nothing.
Is anyone experiencing similar? When I say the function does nothing, you click on button that runs the above function, and no new window opens with specified URL.I am not quite sure what that means. Can you please explain?
This has worked on same client pc before with version 7 - 9. Now doesn't work anymore since upgrade to Adobe Reader X.
Note: ALL other AcroScript functions work properly
Really appreciate any assistance you have.
Jeremy
*** UPDATE *** - I just tested more. The only thing that is NOT working is the second parameter of the launchURL.
If I remove that parameter, or put FALSE, then the URL opens. However, it opens in the same window which is not what we need.
Putting TRUE in there produces no result.
Message was edited by: jred33 -
Setting Font for converting multiple text files into PDF using VB 6.0
Dear All,
Am converting multiple text files into PDF using VB6.0. Currently, am unable to control the font face and size for the generated files. Below is the procedure am using for each file;
Public Sub proc_convert_to_PDF(srcFilename As String, destFilename As String)
Dim p_AcroApp As CAcroApp
Dim p_VDoc As CAcroAVDoc
Dim p_DDoc As CAcroPDDoc
Dim IsOk As Boolean
Set p_AcroApp = CreateObject("AcroExch.App")
Set p_VDoc = CreateObject("AcroExch.AVDoc")
Call p_VDoc.Open(srcFilename, "")
Set p_VDoc = p_AcroApp.GetActiveDoc
If p_VDoc.IsValid Then
Set p_DDoc = p_VDoc.GetPDDoc
' Fill in pdf properties.
p_DDoc.SetInfo "Title", Format(Date, "dd-mm-yyy")
p_DDoc.SetInfo "Subject", srcFilename
If p_DDoc.Save(1 Or 4 Or 32, destFilename) <> True Then
MsgBox "Failed to save " & srcFilename
End If
p_DDoc.Close
End If
'Close the PDF
p_VDoc.Close True
p_AcroApp.Exit
'Clear Variables
Set p_DDoc = Nothing
Set p_VDoc = Nothing
Set p_AcroApp = Nothing
End Sub
What I need;
1) to be able to set the font face of the destination file ( destFilename)
2) to be able to set the font size of the destination file ( destFilename)
Am using Adobe Acrobat 7.0 Type Library
Kindly Help.
Thanks in advanceWe didn't say it doesn't work. We said it isn't supported.
There are a number of other ways to make a PDF. The one which would
give the most control is if your application directly printed to GDI,
controlling the font directly. This could print to Adobe PDF.
You could look for an application that gives control of font for
printing.
You could use a text-to-PostScript system and distill the result. You
could even look for a non-Adobe text-to-PDF.
Working in the unsupported and dangerous world you chose, the font
size for text conversion is set (and this is very bad design from
Adobe) in the settings for Create PDF > From Web Page. There is no API
to this.
Aandi Inston -
Maximum file size or maximum amount of .pdfs in app?
Dear all,
We are creating an app in which tehre is a large number of references created by using an advanced overlay as described in the 'Linking to PDF files' section in the DPS tips app.
Does anyone know whether there is a largest amount of .pdf used in this method a if there is any maximum size of the combined pdfs possible?
We have run into some problems where the overlays load with errors and we can not make sense of it.
Any experiences on this?
Thank you very much,
Best,
KimDavid_MB wrote:
Am I getting close to some sort of size/complexity limit for the iWeb program?
David ~ Probably. iWeb simply wasn't designed to do what you're doing with it. Although iWeb may not have a numerical limit on size or links, bear in mind that it was designed for small personal sites.
One thing you could do to reduce the size is post some of your data on an external site such as Posterous and hyperlink to it. Posterous will automatically place PDFs in a convenient viewer, e.g.
http://dont-panic.posterous.com
By the way, the PDF there was converted from Posterous' web page via this:
_Free online URL to PDF Converter_
And Weebly allows sub-pages (and sub-sub-pages) accessible via drop-down menu. This might allow you to organize your data in a more structured way than iWeb allows:
_Weebly Support Center: Sub-Pages_
Maybe you are looking for
-
Can't open saved file in Outlook
Hi, all, I save the incoming emails using JavaMail API. The files are successfully created, their content is readable(html-like). However they cannot be opened with Outlook. The following error occurs: "Cannot open file: D:\temp\message.msg. the file
-
SQL Expression field with parameter
Hello, I am trying to create a SQL Expression Field that will give me the maximum status date of an employee before a certain date entered in parameter. ex: select max(status_date) from status where status_date < formula field or parameter Since I ca
-
Different Balance Due and Cumulative Balance
Hi Experts, My Client, SBO 8.8 PL17, are experiencing an issue where the balances differ from the balance due screen and the cumulative balance. There are 2 closed invoice showing in the cumulative balance window as well as on Ageing report. These 2
-
I need to load some XML data into a staging table. I am using this navigation path... Home>Utilities>Data Load/Unload>Load>Load XML Data The staging table is setup with the columns in the XML file. I am receiving this error when I attempt to load the
-
ITunes and 5.1 surround sound problem
The iTunes won't play my music in 5.1 surround sound. Now my PC is equiped with sound card capable of producing 5.1 surround sound and my windows media player is playing my music files in full surround sound. iTunes on the other hand won't do it for