Unable to rotate pdf with script(not allowed error security settings prevent error)
I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
nStart = 0;
nEnd = this.numPages - 1;
nRotate = 90;
try
if (this.numPages > 0)
this.setPageRotations(nStart , nEnd , nRotate)
catch(e)
app.alert("Processing error: "+e)
But I'm getting this error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.
I have got it working usig by installing a script on the local machine. Thanks
Similar Messages
-
HI,
I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
nStart = 0;
nEnd = this.numPages - 1;
nRotate = 90;
try
if (this.numPages > 0)
this.setPageRotations(nStart , nEnd , nRotate)
catch(e)
app.alert("Processing error: "+e)
But I'm getting this error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.OK, so here's what you do:
- Create a new file in a plain-text editor (I recommend Notepad++), and paste this code into it:
safeExecMenuItem = app.trustPropagatorFunction(function(code){
app.beginPriv();
app.execMenuItem(code);
app.endPriv();
mySafeExecMenuItem = app.trustedFunction(function(code){
app.beginPriv();
safeExecMenuItem(code);
app.endPriv();
Close Reader if it was open and then save this file as "MyScripts.js" and place it in the following directory (this is for Windows):
C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Javascripts
If you want it to work in Acrobat as well place the file also under:
C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts
Now to rotate the pages clockwise attach this code to your button (in Acrobat, of course):
mySafeExecMenuItem("RotateCW");
And to rotate them counter-clockwise, use this code:
mySafeExecMenuItem("RotateCCW");
Open your file in Reader and the buttons should rotate the pages when clicked... -
Index failure for a PDF with Extraction Not Allowed
Hi,
We have a few PDFs files protected against Page Extraction.
Is it possible to pass the password to the TREX Engine, somehow, in order to be able to index these files? We want to keep this protection, because the users should not be able to extract any information, when opening the documents.
Thanks & Best Regards,
JohnThe Template .dwt file is only used locally by DW itself, there's no reason to upload it to the server unless you intend to share it with someone. You have to upload each individual page that the Template updates, every time you update the template and propagate that change across the child pages.
It would probably be better to use a server side include. That way, you could update one file then upload it and all of your pages would automatically carry that update...
SSI for Apache: http://www.javascriptkit.com/howto/ssi.shtml
PHP's version: http://www.tizag.com/phpT/include.php
It's especially handy if your site gets to the point where you have more than about 20 pages. -
Whitespace is not allowed at this location. Error while running CP using RDF with XML
Hi All,
I am using RDF report with output type as XML. It have following parameters:
1. Organization Name,
2. Invoice No From
3. Invoice No To
4. Date From
5. Date To
I had developed an RTF and registered that in Oracle Applications. The output comes in Excel file.
When I used to run report using Invoice Number From and Invoice Number To the report is giving normal excel output.
But when I am running using parameters Date From and Date To then XML output is coming after viewing output in CP Output button.
I downloaded that xml file. It is invalid as in the last of xml file it is showing following error message
"Whitespace is not allowed at this location".
Please let me know how can I resolve this problem.
Thanks in advance..
Regards
Sandipmy xml file looks like this....
<!-- Generated by Oracle Reports version 10.1.2.3.0 -->
<XX_ITEM_LOADING>
<LIST_G_BLANKET_NUMBER>
<G_BLANKET_NUMBER>
<CUSTOMER>SPS PVT LTD</CUSTOMER>
<INVOICE_NO>17356</INVOICE_NO>
<INVOICE_DATE>20-JUL-13</INVOICE_DATE>
<BUYER_REF>56780YP</BUYER_REF>
<ITEM_DESCRIPTION>XXCSD</ITEM_DESCRIPTION>
<NUM_OF_BEANS></NUM_OF_BEANS>
<CARIRER></CARIRER>
<SHIP_METHOD_CODE>UK568</SHIP_METHOD_CODE>
<MODE_OF_TRANSPORT>ROAD</MODE_OF_TRANSPORT>
<ASSEABLE_VALUE>1134534</ASSEABLE_VALUE>
<QUANTITY>149</QUANTITY>
<SOLD_TO>SPS PVT LTD</SOLD_TO>
<TAN_NO></TAN_NO>
<ST_REG_NO>943481</ST_REG_NO>
<EC_CODE></EC_CODE>
<TERMS>30 NET</TERMS>
<CUST_PO_NUMBER></CUST_PO_NUMBER>
<DESTINATION>LONDON</DESTINATION>
<CP_DAYS>3</CP_DAYS>
</G_BLANKET_NUMBER>
XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Whitespace is not allowed at this location. Error processing resource 'file:///C:/Users/sys/Downloads/cp_output_date_range....
<SOLD_TO>DKSP TECHNOLOGIES & ENGG(A DIV. OF PARROT SYSTEM LTD.)</SOLD_TO>
_METHOD_CODE> -
When tried to upgrade iphone 4S from 8.1.2 to 8.1.3 it crushed at the middle.
After it it not let it tern on and cannot make recovery and crush in the middle of the process with "could not be restored. An unknown error occurred (3014)"Hi bahaluly,
Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are not able to update the iPhone. I would recommend that you read this article, it may be able to help the issue.
Get help with iOS update and restore errors - Apple Support
Solve network errors
Related errors: 17, 1638, 3014, 3194, 3000, 3002, 3004, 3013, 3014, 3015, 3194, 3200, or "There was a problem downloading the software," or "The device isn't eligible for the requested build." These alerts mean that your computer is either having difficulty contacting the Apple update server or communicating with your device.
Check your computer for software or settings that might cause communication issues between your computer and Apple or between your computer and your device.
Cheers,
Mario -
I am trying to activate new qualitative research software. When I attempt to activate it my Apple Air will not allow it and gives an error message saying we cannot verify the identity of the developer of the software
The developer isn't recognized by the App Store, so your Mac is trying to protect you in case the program is malware. As long as you are sure it isn't, follow this procedure:
In the Finder, locate the app you want to open.Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
Press the Control key, then click the app icon.
Choose Open from the shortcut menu.
Click Open.The app is saved as an exception to your security settings, and you will be able to open it in the future by double-clicking it, just like any registered app.
OS X Mavericks: Open an app from an unidentified developer -
Often when I start up my computer I get the message that an item has not been started "comapcpcpstart" because it does not have proper security settings.
"Insecure Startup Items folder" message appears after logging in
-
I used Adobe Reader XI to sign PDFs with certificate, which worked perfectly. Except that the PDF could still be edited by other programs (for example, Nitro PDF) after the signing (but not the fill out fields and the signature). To apply password protection makes sense to avoid changes in the PDF being made after it has been signed. So I applied password protection via Nitro PDF that allows only enter fill-out fields and signing. But when I open it with Adobe Reader, the filling out works fine, but the signing part is not available to click on it (all of the buttons under "Sign" tab are grey). When I go on the Security properties with Adobe Reader, I can explicitly see that signing of this PDF is allowed and yet the option is not open to use for me anymore.
Any ideas on why it is the case and what I could do about that?
Many thanks!
O.Actually yes, I just asked my colleague to assist me with this, he password-protected the PDF with Acrobat 8, explicitly allowing for signing and fill-out functions, it also appears in Adobe Reader under security properties as "allowed", but it is not open to use in the Reader for me anymore (grey buttons).
-
Batch.bat unable to generate PDFs with FM11 trial version & Elmsft 5.2 trial
Hi,
I am evaluating the trial version of Fm11 and FrameScript 5.2 (Elmsft) to generate PDFs using a Batch.bat file. I am able to generate stand alone PDFs with FM11. Now, I have created a Batch.bat file which calls BooksToPDF.fso and a filelist.txt, which contains the list of .book files. This script should work to generate PDFs. This is not working, the script is unable to open FM11 trial version, error message reads: "unable to connect to FrameMaker-open FrameMaker manually". Can anyone help?
Is there any other way to generate multiple PDFs in one go with Fm11.
Regrads,
HimaniHimani,
If you want to just create PDFs from FM via the command line, then using one of the available FM batch utilities might be an easier route.
Check out:
DZbatcher at: http://www.miramo.com/english/overview/download.html
runfm as part of mif2go and is fully functional in the mif2go demo. See: http://mif2go.com/xhtml/runfm_0002_363understandingrunfmcommandlinesyntax.htm#Rz134x44547 -
How to rotate PDF with the automator?
Hello everybody!
I'd like to create a WorkFlow to rotate all the selected PDFs (one page PDF) of 90º.
In the PDFs section of the Automator there isn't anything like that.
Somebody can help me how to do it?
Thks a lot!
EnricoHello
You may use something like the following script, which will rotate pdf files on desktop by 90° CW (clock-wise) and save the rotated pdfs in ~/desktop/out directory with name with _RC90 appended; e.g. Given original name = abc.pdf, rotated pdf = abc_RC90.pdf. The ouput directory, if specified, must be present in advance. If ouput directory is not specified, rotated file is save in the same directory as the original resides in. Specify -90 or 270 to rotate 90° CCW (counter-clock-wise).
#!/bin/bash
cd ~/desktop || exit
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w <<'EOF' - 90 *.pdf out
# ARGV = angle pdf [pdf ...] [output_directory]
# * angle is measured in clock-wise and must be one of [-270, -180, -90, 90, 180, 270]
require 'osx/cocoa'
OSX.require_framework 'PDFKit'
include OSX
def usage
raise ArgumentError, "Usage: #{File.basename($0)} angle pdf [pdf ...] [output_directory]"
end
usage unless ARGV.length > 1
outdir = File.directory?(ARGV.last) ? ARGV.pop : nil
usage unless ARGV.length > 1
rota = (ARGV.shift.to_i + 360) % 360
usage unless [90, 180, 270].include? rota
ARGV.select { |f| File.file?(f) }.each do |f|
url = NSURL.fileURLWithPath(f)
doc = PDFDocument.alloc.initWithURL(url)
unless doc
$stderr.puts "Not a pdf file: %s" % [File.expand_path(f)]
next
end
(0 .. (doc.pageCount - 1)).each { |i| doc.pageAtIndex(i).setRotation(rota) }
bname = File.basename(f).sub(/\.pdf$/i, '')
odir = outdir ? outdir : File.dirname(f)
doc.writeToFile("#{odir}/#{bname}_RC#{rota}.pdf")
end
EOF
In order to make this as Automator workflow, use Run Shell Script action as follows.
shell = /bin/bash
pass input = as argument
code = as follows:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w <<'EOF' - 90 "$@"
# ARGV = angle pdf [pdf ...] [output_directory]
# * angle is measured in clock-wise and must be one of [-270, -180, -90, 90, 180, 270]
require 'osx/cocoa'
OSX.require_framework 'PDFKit'
include OSX
def usage
raise ArgumentError, "Usage: #{File.basename($0)} angle pdf [pdf ...] [output_directory]"
end
usage unless ARGV.length > 1
outdir = File.directory?(ARGV.last) ? ARGV.pop : nil
usage unless ARGV.length > 1
rota = (ARGV.shift.to_i + 360) % 360
usage unless [90, 180, 270].include? rota
ARGV.select { |f| File.file?(f) }.each do |f|
url = NSURL.fileURLWithPath(f)
doc = PDFDocument.alloc.initWithURL(url)
unless doc
$stderr.puts "Not a pdf file: %s" % [File.expand_path(f)]
next
end
(0 .. (doc.pageCount - 1)).each { |i| doc.pageAtIndex(i).setRotation(rota) }
bname = File.basename(f).sub(/\.pdf$/i, '')
odir = outdir ? outdir : File.dirname(f)
doc.writeToFile("#{odir}/#{bname}_RC#{rota}.pdf")
end
EOF
An Automator service will look something like this.
Tested under 10.6.8.
Good luck,
H -
How to "Print to PDF" with property "Signing: Allowed"
Print to PDF generates a file with the security document property "Signing: Not Allowed". These Properties are only visible in Acrobar reader -> File -> Properties; you can't see these in Preview.
Is there a way to change Mac OS X Print to PDF, that it generats PDFs with "Signing Allowed"?Thomac:
After further review I discovered that it isn't the PDFs you are creating that has the problem, it is the limitations of Adobe Acrobat Reader to perform the ability to do the functions of Document Assembly, Commenting, Signing and Create Templates. If you had Acrobat Professional and opened your PDFs and checked the properties, you would discover that all these would be allowed.
Initially, I was looking at my test files with Acrobat Professional. But, when I opened the same PDF with Reader on a different machine, I was getting the same summary as well.
Adobe Reader is just that: a READER.
You can feel safe that your PDFs allow signing. -
Create PDF which does not allow to print
My customer would like to use smartform HR_ESS_PAYSLIP_TO_PDF. The requirement is to convert the payslip to PDF, not allow to print the PDF.
The <b>no print</b> information should be included in the document itself.
I know this is generally possible because there a converters which have these option, e.g. http://www.abxzone.com/abx_reviews/paragon6/article_p3.html see "security ranging".
How can I set this up using smartforms?
Kind regards
MarcusHI Paulo,
Perhaps the Preview preference file is corrupted after the upgrade.
Delete this file.
com.apple.Preview.plist
/Users/YourName/Library/Preferences. Drag that file to the Trash, empty the Trash and restart your Mac.
See if that makes a difference.
Also, check the manufacture web site for your printer and see if there are any updates available for your printer model for compatibility with 10.6. That could be part of the problem.
Some users are having luck with reinstalling the software that originally came with their printers. If you do not have the disk, go to the web site and download the drivers for 10.5. They might work.
Carolyn -
Unable to create PDF - file could not be printed
I am having a problem with a user who is unable to create a pdf using Adobe Standard 8
The error messages is as follows:
your file could not be printed due to an error on adobe pdf on Ne 04
http://i45.photobucket.com/albums/f97/bsucards/584872418744_adobe.jpg
I have tried to uninstall Adobe Standard 8 and reinstall and do all the updates
I have uninstalled Adobe Reader 9 and downgraded it to Adobe Reader 8
I have reinstalled Office XP
I have created a new profile for this user
The only way I can get it to work is to make the user an admin, which is not an option. We have other users in the company using this version of Adobe without any problemsHi I dont think this is a permissions issue I just created a new WINDOWS PROFILE this fixed the issue the user already was a admin on the computer. The issue was trying to save/print any file to PDF to either network or local to computer. Once the new profile was made I was able to test and could once again create pdf files. There must have been something in the old profile causing the issue and the new profile fixed the issue it was a last thing to to try as had tried everything I could think of.
-
Action with script not working today!
HELP! I have an action with a script in it that I use daily. Today I get an error message that says
Error 8800: General Photoshop error occurred. This functionality may not be available in this version of Photoshop. -<no additional information available> Line:18 -> AD.saveAs(saveFile, saveOptions, true, Extension.LOWERCASE);
What do I do next?? As far as I know nothing has changed on the computer since yesterday morning when it was fine.
Photoshop CS4 on an Imac.
Okay, I figured out how to attach a screen shot.This error is generated by the script because it can not save the document for some reason. Without seeing the script it is hard to give you an answer.
It could be that the document you were working on had not been saved previously, so there was no path. -
What is causing the "script not running"? Why so long to open? Etc.
Hi Donekes,
First off I need a little more information to help with troubleshooting. You say that an error occurs when you "try to re-open the same problem app before the old session completely exits". Does the error have an error code or dialog display? It may also be possible to receive an error log. Here is a knowledge base that explains how to retrieve error logs.
http://digital.ni.com/public.nsf/websearch/54E361E3FF477EC186256C320068184F?OpenDocument
If you are able to get that information then please post. Have a good day.
Brian K.
Maybe you are looking for
-
HT201210 i want to downgrade my ipad 2 IOS 6.0 to 5.1.1
my ipad 2 is cannot use after updating ios 6.
-
Hi... can any one breif me list of set up to configure Quality inspection for goods receipt with out inspection task list. there is no specifc inspection method but i need to set up just to triger inspection lot which can be released into unrestricte
-
How to handle source empty field in FDM maps
Dear all, In our projects, data was extracted from EBS with ERPi adapters to HFM through FDM. In this case, some source fields are empty after the data extraction from EBS. The problem is, how can I deal with the empty field in the maps. For now, the
-
Problems with the dispatchEvent-Methode
Hallo, I have a strange problem with above mentioned methode I have a JTextField, and I want that only numeric inputs are accepted, so I used a KeyListener -Interface in the following way public void keyTyped(KeyEvent e) JTextField field =(JTextField
-
Ok, I've got my website up and running with a few galleries on for my photography work. Nine images to a page, in a grid, with the pretty slideshow if you click on the slideshow button. But by accident I just clicked on a photo, and I got a big photo