Avoiding "PDF Modification Detected" blocking dialog
Hello,
I am working on an Illustrator script opens an AI or PDF file, extracts some information, then converts it to a JPEG. It is designed to run unattended in batch mode, and sometimes is used to process PDF files which were not created by us, but were submitted from the Internet. The script is working properly for most documents.
However, we sometimes end up with PDF files that cause this warning dialog to pop up:
PDF Modification Detected
This document has been modified outside of Adobe Illustrator.
How do you want to proceed?
[ ] Discard changes, preserving Illustrator editing capabilities
[ ] Keep changes, reducing Illustrator editing capabilities
Cancel; OK
The dialog is blocking, and so prevents our unattended script from running until a user walks to the console and presses "OK" or "Cancel".
The script is in JavaScript, and contains this line, which I thought would prevent this sort of dialog from coming up:
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
Does anybody have suggestions for avoiding this dialog? I would prefer for it to just select "OK" automatically, but even failing would be much better than blocking.
Alternatively, any suggestions for detecting documents that are likely to trigger this warning beforehand?
Thanks!
-----Scott.
It could be that this is just caused by out-of-sync timestamps on the file.
But possibly you've got a bigger problem. PDFs generated by Illustrator may in fact contain two files: a PDF and an AI. WHen you open them in Illustrator, the AI will be edited (and the PDF will be updated when saving). When opening them in other software, the PDF part will be edited (and the AI won't be updated). Illustrator realizes this and warns you.
You know your files, you'll have to find out what happened.
Similar Messages
-
"PDF Modification Detected" dialog box
When I attempt to open certain PDFs in Illustrator (up to and including CS5.1), I get a dialog box with the title 'PDF Modification Detected' and the text 'This document has been modified outside of Adobe Illustrator.'
I can't work out what it is about these PDFs that causes this dialog box to open (most PDFs don't cause it, including ones that have been edited using programs other than Illustrator). Discarding changes does indeed discard certain changes.
The dialog box appears even where the file is opened using a script that suppresses dialogs. This together with the icon makes me think that this is a really old piece of code that's being triggered in a different way from most dialogs. Does anyone have any idea of what causes this dialog to appear, and if there's any way to take it into account (e.g. setting a default answer) in scripting or batch processing?It could be that this is just caused by out-of-sync timestamps on the file.
But possibly you've got a bigger problem. PDFs generated by Illustrator may in fact contain two files: a PDF and an AI. WHen you open them in Illustrator, the AI will be edited (and the PDF will be updated when saving). When opening them in other software, the PDF part will be edited (and the AI won't be updated). Illustrator realizes this and warns you.
You know your files, you'll have to find out what happened. -
How can I detect a dialog and respond?
I'm having trouble doing something that's probably not that hard. I'm trying to "Print to PDF" a bunch of old AppleWorks documents. When you open a document created in AppleWorks v6 it opens right up, but when you open a document created in AppleWorks 5 you get a dialog box that says, "This document was created by a previous version of AppleWorks. A copy will be opened and "[v6.0]" will be added to the filename."
Right now I open the file and then:
tell application "AppleWorks 6"
activate
repeat while not (exists front document)
delay .2
end repeat
end tell
When the dialog box pops up, there's no front document so the whole thing freezes until you hit OK. How can I detect this dialog box and dismiss it?
Thanks
PS
When the box is open I ran this and got this result:
/usr/bin/osascript -e 'tell application "System Events" to get properties of windows of application process "AppleWorks 6"'
minimum value:missing value, orientation:missing value, position:436, 153, class:window, role description:dialog, accessibility description:missing value, focused:missing value, title:missing value, size:412, 123, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXDialog, selected:missing value, name:missing value, description:dialog, minimum value:missing value, orientation:missing value, position:8, 76, class:window, role description:floating window, accessibility description:missing value, focused:missing value, title:Starting Points, size:631, 189, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXFloatingWindow, selected:missing value, name:Starting Points, description:floating window, minimum value:missing value, orientation:missing value, position:4, 22, class:window, role description:floating window, accessibility description:missing value, focused:missing value, title:Button Bar, size:612, 51, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXFloatingWindow, selected:missing value, name:Button Bar, description:floating windowHi,
The simplest would be to set the application preferences in the script.
Like this :
-- *** set prefs ****
tell application "AppleWorks 6"
activate
set oldPrefs to its preferences
copy oldPrefs to tPrefs
tell tPrefs
set old version warning to false --doesn't show the old version warning alert
set converted file suffix to true -- append “[v6.0]” to documents converted from older formats
set locked file warning to false
set paint reduction warning to false
end tell
set preferences to tPrefs
end tell
-- *** end set prefs ****
--**** your script, example ***
set tfiles to choose file with multiple selections allowed
tell application "AppleWorks 6"
repeat with i in tfiles
open i
tell front document
-- do something
end tell
end repeat
end tell
--**** end your script ***
-- *** reset prefs ****
tell application "AppleWorks 6" to set preferences to oldPrefs -
I have an issue where a user is prompted with an "Allow or Block" dialog everytime she clicks a link within a company created PDF. The links all go to intranet sites, which are defined in the intranet section, and even placed in tnhe Trusted Sites as well. How can I stop this dialog from popping up each time?
Software versions in play are:
Acrobat X
Windows 7
IE 9
TIA for any assistance.Please be more specific.
How are the servers defined in the Trust Manager and the OS Internet Options Control Panel?
http://mycompanyserver.mycompanyname.com
But does the link in the PDF file look something like this:
http://mycompanyserver/pathtothePDFfile/thePDFfile.pdf
If so, then Acrobat and Windows are probably not seeing it as the same server. The FQDN (Fully Qualified Domain Name) is not defined as the same server.
The same would be said for a server that had "https://" in front of the URL. It's not considered the same server because it exists on a different port number. Usually 443 for https. -
Corrupted Font, PDF File detection in illustrator
Hello,
I am new to illustrator.Is there any way to know in illustrator using javascript that the opened PDF have corrupted fonts inside?.Two cases, first in which font is available in our system and other in which font is not available in our system.If font is not available in our system the Illustrator ask to replace the font with some other default font but if the font is available in our system it just takes the orignal correct font from system and make the corrupted PDF font, correct.In both the cases corrupted font is not coming in the PDF opened in illustrator.In javascript textFont abject is perfect, it has all the properties which a normal textFont object must have.Joy,
Understand: The alert you describe is telling you that a font embedded in the PDF is not available for use in the OS. The font is just missing, not "corrupted."
An actual corrupted font can manifest itself in many errant and unpredictable ways in Illustrator; the program doesn't "know" the font is corrupted; it just suffers from whatever damage the corruption causes--like any other kind of corrupted file.
When you open a PDF in Illustrator, the dialog in the standard user interface gives you opportunity to replace a missing font with one that is installed, or ignore it (in which case the default font will be substituted.) As to whether Javascript can be written to automate that, I doubt that the detection of the alerts and the options for answering them are supported in the Javascript model. Moreover, the "answers" would probably have to be written for your specific set of available fonts if you want it to answer with a substitution. But I've never explored that, so I'll defer to anyone who has.
JET -
PDF Table action block is repeating first row in each page.
Hi All,
There is a strange problem in PDF Table action block. I am paasing one xml variable in the pdf table action block. But when it creates the final pdf - I can see the very first row of the xml is getting repeated as first row of each page along with the header.
Is there any solution - not to reapeat the first row of the xml in each page ?
Thanks in advance for your response.
SoumenHi Michael,
Installation of PDF Action is done based on this link-
https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1109054
MII Version - 12.0.7 Build(20)
version 1.4.5. of
the third-party iText.jar and iTextAsian.jar, from
http://www.lowagie.com/iText/download.html
Thanks,
Soumen -
Detected Blocked Outbound Queues
Hi All,
We have found detected Blocked Outbound Queues in SMq1 CRM PROD System and we have checked log , its shows below log.
400 R3AUBUPA0008063715 RP1CLNT400 4 CPICERR A3A4176F143C4F3031E8C711 06.02.2012 20:02:48
400 R3AUBUPA0008063722 RP1CLNT400 4 CPICERR A3A4177004E04F3031E9148F 06.02.2012 20:02:49
400 R3AUBUPA0008063751 RP1CLNT400 4 CPICERR A3A4176F174C4F3031E9C4BB 06.02.2012 20:02:49
400 R3AUBUPA0008063753 RP1CLNT400 2 CPICERR A3A4177002984F3031EA5DFE 06.02.2012 20:02:50
Status shows CPICERR ,Error when opening an RFC connection .
But i have checked RP1CLNT400 test connection is successful .
Kindly suggest .Hello,
Check the following notes:
[378903 Queue status in SMQ1, SMQ2 and table ARFCRSTATE|http://service.sap.com/sap/support/notes/378903]
[430980 CRM Server: Analysis in delta data exchange R/3->CRM|http://service.sap.com/sap/support/notes/430980]
Regards,
Eduardo Rezende -
Hi
I know rman detect block corruption but my question is block corruption having two types one is physical block corruption and other is logical block corruption
by default rman enable physical block corruption but by default rman not able to detect logical block corruption.Plz tell how i enable logical block corruption with RMAN?
Please make correction if i m wrong.
Thanks a lot.>> Sorry i am not telling you i am using oracle 9iR2 instead of oracle 10g
It's okay.
That's why; it's been already told that before posting in the forums, better it's better to specify/mention the Oracle Version/OS Details, etc to get the accurate and response.
>> Send me if you have 9i related document.
No need to send you the related documents, when there is a bulk repository available for free of cost for everybody.
All you need to do is, just search in http://tahiti.oracle.com/ with the required word or phrase.
Don't take me wrong, but make a habit of searching related documents from the Oracle Documentations.
Regards,
Sabdar Syed. -
FrameMaker 8 to PDF: disappearance of blocks of text disappear
Since updating to FrameMaker 8, have been unable to generate a usable PDF file. Blocks of text are missing from the PDF.
After "repairing" FrameMaker 8, able to generate accurate PDF file once or twice, then problem starts again.
Anyone know what this is all about?Indirectly. The original link was to the thread in the Webx forums where this was discussed. ANY link prior to April 2009 to the old Adobeforums will not work. No provision was made in the Jive format forums for updating all of the existing links when the forums were migrated.
Thank you for posting the link to the blog where the hotfix is mentioned.
FWIW, the old link was to this thread: http://forums.adobe.com/message/1235530 -
Block dialogs from coming to front automatically if not already front app
It's 2011, 43 years since I first used and programmed computers...
I do a lot of writing, and I am really tired of applications (in the background) suddenly popping up dialog boxes without asking permission first, since sometimes I am typing away and the dialog box traps it, or worse: I hit the enter key just as a yes/no dialog comes up, and I have *no* idea what I said Yes to...
Is there any way to Block dialogs from popping to the front without, say, bouncing the dock icon first?
thanksDo you see a flashing Photoshop icon or button in the TaskBar if this occurs?
If so, Windows 7 is blocking Photoshop from popping to the front, possibly because it thinks Bridge is still current.
I don't use Bridge, so I can't tell you whether it's an improper interaction at that level, but I can say that sometimes video drivers can affect window behavior... Check to see if your video card manufacturer has released a newer driver than the one you currently have.
-Noel -
How RMAN detect block corruption
Hi,
how RMAN detect block corruption( means how RMAN work internally to find corrupted block).
thanks.There are initialization parameters (like DB_BLOCK_CHECKING) which will detect block corruption on block access. Go through the following link also:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm -
Save as Adobe PDF Automator action displaying dialog
Hi,
I'm trying to use the "Save as Adobe PDF" Action in Automator in a workflow.
As soon as the action is initiated it interrupts the workflow to ask for a save path.
I don't understand this. Is it possible to provide this save path beforehand?
Having it pop up a dialog in the middle of the workflow renders it useless to me,
or am I missing something?
hope anyone can help.
kind regards,
RichardNo :-) I'm just surprised that an automated workflow asks for something halfway.
It seems to defy the point of automation. I would expect to be able to pre-set something like that. -
Download smartform as PDF, suppress Print/Preview dialog
Hi Experts,
Facing some issues in downloading PDF converted from Smartform.
In the program I am trying directly download a smartform converted into PDF format and save it in local system.
When ever I am trying to execute the program it shows up the Print/Preview dialog before showing the Save As dialog.
I have passed control_parameters-getotf = 'X' to the smartform runtime FM, which ideally should have suppressed the Print/Preview dialog and return the otfdata.
Here the entire code is...
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
The program other wise works absolutly fine .
Please advise.
Thanks
Jahan
Edited by: Rob Burbank on Apr 8, 2010 11:10 AMHelloo Guyz...
I am exactly trying the same, but the Print Dialog is still coming ...
See here is my code ..
cont_param-getotf = 'X'.
cont_param-no_dialog = 'X'.
cont_param-preview = 'X' .
CALL FUNCTION fm_name
EXPORTING
control_parameters = cont_param
IMPORTING
job_output_info = otfdata
TABLES
s_bukrs = s_bukrs[]
s_gjahr = s_gjahr[]
s_rebzg = s_rebzg[]
s_kunnr = s_kunnr[]
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
even after this ..during execution the the Print Dialog is coming..
I have no idea what esle I am missing..
Thanks -
Removing PDF options in print dialog box
When I bring up the print dialog box and click on "PDF" to go to the options for saving the document as PDF, how do I remove some of the options from that list? I installed software that put an option in that list, but I don't use the software so I want to remove that PDF option from the list but don't know where to go to remove it.
~/Library/PDF Services or /Library/PDF Services
-
Opening a saved printer friendly version of a web page (PDF) opens a print dialog.
On the web I asked to view a printer friendly version of the page which opened a PDF which I saved. When I attempt to open the saved PDF it automatically brings up the print dialog. If I cancel the print it opens in Adobe Reader. What can I do to open the file without the print dialog popping up
Hi Stanley Trela,
If you are on Windows, open up your application preferences, then go to the "Security (Enhanced)" category and deselect "Protected View". If you are on a Mac, unfortunately, the only workaround is to "print as image" - you can select that after clicking on the "Advanced" button on the print dialog.
Maybe you are looking for
-
my older ipod shuffle will not charge on my laptop. it starts and then stops after the light blinks four or five times. is there any other way to charge a shuffle?
-
How to send HTML email (like a Apple eNews) ?
Hello My name is Daniel... I'm a graphic designer. My questions is... I'm doing a Newspaper eMail for a couple of clients... I already have 1 HTML page with images and text its a very simple design only four or five images witn a text and a couple of
-
No video with actiontec m1424wr
anyone else with this problem?
-
Remove Save as option in R12 instance - discoverer reports
Hi, IN R12 instance discoverer reports we find following option at top-left side of the screen - Rerun query - Save as - Revert to saved - Export ....etc Is it possible to remove 'Save as' option? If yes, please suggest how can it be done. Thanks, Ka
-
Z1 viewfinder colors don't match captured footage on TV and FCP
Hi. I shoot underwater on a Sony Z1 and white balance using the viewfinder to what seems a satisfactory result. However, once captured, the colors of the footage on both the Z1's LCD and its viewfinder simply do not look like the colors in FCP or on