Exporting Secured PDF from indesign using apple script
hi there, this is my first go at scripting,
basically what i am trying to do is:
tell indesign to turn on a layer called "proof" in the active document
then export pdf - set pdf preference to smallest file size, all pages, and secure the file WITH A PASSWORD so that it can be opened but not edited (unless by someone at my agency who knows this password). this easy enough to manually, but im sick of typing out a password everytime i save a proof.
then save to a specific folder on the desktop, using the already existing filename - so 'myfile.pdf'
the code below gives me this message "
error "Can’t make name of PDF export preferences into type Unicode text." number -1700 from name of «class DFpf» to Unicode text
could someone please help me word this properly? I tried first referring to a pdf preset instead of setting all the values ie set color bitmap etc but i couldnt get the password to work,
here is what i have so far, written from snippets that other people have tried:
tell application "Adobe InDesign CS4"
tell active document
try
set visible of layer "PROOF" to false
end try
set docName to name
set baseName to text item 1 of docName
set ASTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to "."
set AppleScript's text item delimiters to ASTID
tell PDF export preferences
set acrobat compatibility to acrobat 4 --> create a 1.3 pdf
set use security to true
set disallow changing to true
set disallow copying to true
set disallow document assembly to true
set disallow extraction for accessibility to true
set disallow form fill in to true
set disallow notes to true
set disallow hi res printing to false
set color bitmap sampling DPI to 100
set grayscale bitmap sampling DPI to 100
set monochrome bitmap sampling DPI to 100
--set image quality
set color bitmap quality to minimum
set grayscale bitmap quality to minimum
--set fonts
set subset fonts below to 0
--set security
set use security to true
set change security password to "editedit"
set disallow extraction for accessibility to false
set disallow copying to true
export format PDF type to "/Users/kimwilson242/Desktop/_PROOFS/" & name & ".pdf" without showing options
end tell
end tell
tell application "Adobe InDesign CS5"
-- prefs belong to app so use in tell app block
tell PDF export preferences
set acrobat compatibility to acrobat 4 --> create a 1.3 pdf
set use security to true
set disallow changing to true
set disallow copying to true
set disallow document assembly to true
set disallow extraction for accessibility to true
set disallow form fill in to true
set disallow notes to true
set disallow hi res printing to false
set color bitmap sampling DPI to 100
set grayscale bitmap sampling DPI to 100
set monochrome bitmap sampling DPI to 100
--set image quality
set color bitmap quality to minimum
set grayscale bitmap quality to minimum
--set fonts
set subset fonts below to 0
--set security
set use security to true
set change security password to "editedit"
set disallow extraction for accessibility to false
set disallow copying to true
end tell
-- now deal with the doc
tell active document
try
set visible of layer "PROOF" to false
end try
set docName to name
set baseName to text item 1 of docName
set ASTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to "."
set AppleScript's text item delimiters to ASTID
-- use flexible path to user desktop… path strings are HFS (colon delimited)
export format PDF type to (path to desktop as text) & "PROOFS:" & name & ".pdf" without showing options
end tell
end tell
Similar Messages
-
Exporting a pdf from InDesign-need to access Overprint
I am exporting an InDesign CS5.5 Document with mixed ink and Illustrator eps with pantone overprints.
When I export it into PDF the native mixed ink in InDesign represent accurately.
However the Illustrator eps preview as solid gray @ 70%. This is the overprint layer onto of Pantone 293.
When I turn on Print preview in pdf it is accurate.
My question is:
In the export to pdf palette under the output header, there is a check box 'simulate overprint'.
I've tried several different variations, but cannot get that check box to turn on.
Unlease I make an X-1a file the overprint for the Illustrator eps does not preview without turning on the output preview palette in Acrobat.
And lets face it, to the client, that is rocket science.
How can I access the 'Simulate Overrpint' option when I am exporting the document.
Thanks,
J-Or, better than that, export the PDF from InDesign as PDF/X-4!
By default, Acrobat and Reader use overprint preview when displaying PDF/X-4 files. Plus you have the benefit of full color management and not having transparency ruined by premature flattening.
One other note. Other than for the fairly common practice of overprinting black text over colors to avoid halo effects due to registration, one should be exceptionally careful in using overprint. Trapping, the other good, justifiable use for overprint is really best performed by the RIP. Most modern RIPs provide for automatic trapping. Overprint should absolutely not be used as a “poor man's transparency,” especially in conjuction with spot colors. With the advent of real transparency in the Adobe imaging model and hence in Illustrator, InDesign, and PDF, there is no good reason to use overprint hacks anymore to simulate transparency.
- Dov -
Anyone know how to export a PDF from InDesign so it is "click to go to next page" instead of "scroll to go to next page"?
I don't use the latest InDesign, but in the past ID's options for exporting to PDF did not allow setting how a PDF should be viewed once exported. However, these settings can be adjusted in Acrobat through Preferences: check out Page Layout and Zoom under Page Display.
David -
When I export to PDF from InDesign CC mystery letters appear which only my client sees. It looks fine on my iMac. Heres a screen shot. The floating "A-s" & "D-s" only appear on my clients end? Anyone know what it is and how I can fix it?
This forum is actually about the Cloud, not about using individual programs
Once your program downloads and installs with no errors, you need the program forum
If you start at the Forums Index http://forums.adobe.com/index.jspa
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
http://forums.adobe.com/community/indesign -
Having trouble exporting to pdf from InDesign CS6
When I attempt to export to pdf from InDesign CS6, the application crashes. Apparently there is some phantom plug-in issue.
I need to get this resolved asap.
Thank you,
MarissaHave a look at this generic document to help you troubleshoot: http://helpx.adobe.com/indesign/kb/troubleshoot-printing-pdf-export-indesign.html
Could you also provide details about what you've tried, and what errors you encountered? Is this problem limited to a particular document, or all documents? -
Find raster Image & Vector image in adobe indesign using apple script?
Find raster Image & Vector image in adobe indesign using apple script?
Find raster Image & Vector image in adobe indesign using apple script?
-
Export the pdf from indesign some error Pop Up window (Failed to Export the PDF file). How slove the problem
Please some one help on thisYou need to try exporting the first half of the book.
If that exports ok then export the other half of the book.
Whatever half it fails on - keep dividing the book in half to find the culprit page or pages.
For example if your book is 128 pages long:
1. Export pages 1 - 63
2. If these Fail to Export then
3. try exporting1-32
4. If these Fail to Export
5. then try exporting1-16
If it doesn't fail (step 2)
Then export pages 64-128
and 64-90 etc.
until you find the pages causing the issues. -
Too long export to PDF from Indesign CS6
When I exporting PDF from InDesign CS6 takes too long. For example, a few minutes (5minutes). In InDesign CS3, which I used earlier, the file is exported immediately (few seconds). It is a problem in setting or higher hardware requirements?
I use laptop 2GB dual processor, 8GB RAM, Windows Vista 32 bit. You have a similar experience?It is strange that CS6 supports Windows XP and Windows7 and Vista does not support. I use 8GB RAM because I bought a laptop so. There for me any solution, how to enable CS6 InDesign with the 32 bit system Windows Vista?
-
So every once and a while I export a file to pdf from InDesign and Acrobat crashes. Sometimes it doesn't crash until I reduce file size. It always happens when it is actually saving the file. Usually I am overwriting a file with a newer version but not always and either way I get a crash. I copied my crash report below. Please help. This reduces my productivity greatly.
http://pastebin.com/DNpKCNXAI'm going to leave this open here in case anyone has some ideas, but since this is an Acrobat crash (it looks like it might have something to do with security), you should cross post in the Acrobat forum.
-
Export OSB configuration from eclipse using ant script
I am trying to export an OSB project from eclipse using ant script
I followed the link below http://biemond.blogspot.com/2010/07/osb-11g-ant-deployment-scripts.html
It is using com.bea.alsb.core.ConfigExport to do the export. This export is always set to resource level.
I see it generates a file ExportInfo setting some properties. It has a property that set the export level as below
<imp:property name="projectLevelExport" value="false"/>*
How can I export the project in project level? basically setting projectLevelExport to true?
So that if a file does not exist in the sbconfig.jar file , then while importing the jar to OSB server it will delete the file from the server instead of skipping it?
I appreciate any help
here is the ant script snippet that gets executed to export from eclipse
<target name="exportFromWorkspace">
<delete failonerror="false" includeemptydirs="true"
dir="${metadata.dir}"/>
<!--eclipse.refreshLocal resource="${config.project}" depth="infinite"/-->
<java dir="${eclipse.home}"
jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar"
fork="true" failonerror="true" maxmemory="768m">
<jvmarg line="-XX:MaxPermSize=256m"/>
<arg line="-data ${workspace.dir}"/>
<arg line="-application com.bea.alsb.core.ConfigExport"/>
<arg line="-configProject ${config.project}"/>
<arg line="-configJar ${config.jar}"/>
<arg line="-configSubProjects ${config.subprojects}"/>
<arg line="-exportLevel true"/>
<arg line="-includeDependencies ${config.includeDependencies}"/>
<sysproperty key="weblogic.home" value="${weblogic.home}"/>
<sysproperty key="osb.home" value="${osb.home}"/>
<sysproperty key="osgi.bundlefile.limit" value="500"/>
<sysproperty key="harvester.home" value="${osb.home}/harvester"/>
<sysproperty key="osgi.nl" value="en_US"/>
<sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
</java>
</target>yes, I specified the project name to export the whole project.
Here is few lines from my properties file
# properties for workspace export
config.project="OSB Configuration-GW"
config.jar=D:/workspace/osb/scripts/gateway/mycode2/ant_osb/dist/sbconfig.jar
config.subprojects="GatewaySecurity"
config.includeDependencies=true
workspace.dir=D:/workspace/osb/gateway-workspace
But this property does not make it to export at project level ,it export the specified project at resource level.
And while importing this jar to OSB server, if a file is missing it skips the file instead of deleting the file from the OSB server
If I unjar sbconfig.jar file, open ExportInfo file and update the line in bold below to true then it deletes the file from OSB server, if not exist in sbconfig.jar
<imp:property name="exporttime" value="Thu Dec 29 13:57:44 EST 2011"/>
<imp:property name="productname" value="Oracle Service Bus"/>
<imp:property name="productversion" value="11.1.1.4"/>
*<imp:property name="projectLevelExport" value="false"/>*
Here is few lines from Oracle API java doc
http://docs.oracle.com/cd/E13171_01/alsb/docs26/javadoc/com/bea/wli/sb/management/importexport/ALSBImportOperation.Operation.html
public static final ALSBImportOperation.Operation Delete
Indicates that the resource is deleted in the importing domain. This is the default operation when the project is exported in its entirety and the resource exists in the target domain but not in the jar file
public static final ALSBImportOperation.Operation Skip
Indicates that the resource is skipped meaning the resource is not touched in the importing domain. This is the default operation if the jar file was exported at the resource level, and a resource that exists in the target domain, does not exist in the jar file. -
Format Type Does Not Appear. Can Only Export to PDF from InDesign.
When I export a document from InDesign, I am unable to choose any other format besides PDF. It does not give me the option to select a format type.
I don't think that's what he means. Think IDML or Jpeg...
See Replace Your Preferences -
When I used Quark to make a PDF, the title area in the PDF was automatically populated with the file name, there in the properties tab. We like use this area to confirm file names of original files, so we can keep track of drafts, (in case the file name of the PDF is changed, which our boss often does). Is there any way to set up InDesign to do the same?
@stadlock – I think I know what you mean…
You exported to PDF and changed the file name in the export dialog to a different one from the document name presented there the first time you exported that document. And in exports after that the new name will be presented in the dialog instead of the name of the document.
What you can do against that?
1. First time you want to export: Save before the document is exported. And do not save after it's exported with a new file name.
2. After the new file name is already there in the export dialog:
Type in the document name in the dialog. Export. Or abort after chosing a export preference. Save. Check again, if the document's file name is in the export dialog. If yes, procede like in suggestion #1. If not do a full export with the document's file name, save and then procede with suggestion #1.
Uwe -
Indesign worked well for a long time. Then recently, after I and to reset my computer to an earlier time, Indesign stopped letting me export to PDF. I get no error message. It is just that nothing happens after I export it. I have some major deadlines for printin and am desperate for help. I emailed the Indesign file to someone else and they were able to export it and create a PDF.
I look forward to any suggestions. I would gladly pay someone if they can get it to work again.@ (peterfrommaine)-peter – since you use InDesign CS5.5, be aware that there is a bug (at least up to version 7.5.2) with PDF export with books that could mess up your page numbers. You are not affected, because you printed to PDF (that is the "print-PostScript-distill-to-PDF" way).
But if you want to export to PDF, read this thread:
http://forums.adobe.com/message/3750835#3750835
So then I would go a different route. Use a script that exports in foreground (there are several around; if you read the thread mentioned by the other Peter, you already found that link: ExportPDF_in_Foreground_CS5.jsx) or use the more radical method Matthew Lawn suggested to prevent all background exporting (not only PDF export):
http://forums.adobe.com/message/3689090#3689090
And see the following implementation (very cool) by Marijan Tomba "controlBackgroundExport.jsx":
http://forums.adobe.com/message/3690507#3690507
Uwe -
Special letters do not export to PDF from InDesign CS4
I have just installed Indesign CS4 and gathered all the fonts I needed from my old computer. Everything has gone well until I tried to export my document to PDF. The PDF showed the Icelandic special "Ð" and "Þ" letters as a missing letter, a white space or a simple box. This only happens in several typefaces, namely Helvetica Neue, Cohin and Times. (and maybe some others). Note that the special letters are shown in InDesign. I reckon that there is some problem whit the export… Can anybody help me?
You can check the "Advanced" section when you export the PDF to make sure that fonts are being embedded. Both d-with-bar and thorn are part of the glyph complement of Helvetica Neue, so either the font is not being embedded, or something is wrong in ID. You can also go to the "Composition" section of the Preferences and put a check into the "Substituted Glyphs" box to make sure that the d-with-bar and thorn that are appearing in your ID doc are actually part of the font (which they should be).
-
Why are some of my pages blank when I export to PDF from InDesign?
I have a fairly large InDesign book that I've been trying to export to PDF unsuccessfully. There are lots of images and te
xt in the book and half export fine and the other half don't. When I export the files individually, they export fine. Any advice why the book won't export correctly?I wouldn't expect either conversion or working froma server to affect the export (though working with your ID files directly on the sever is a bad practice -- big potential for disaster due to a network error causing unrecoverable file damage).
First, do a "Save as" to remnove any unneeded old undo inofrmation from the file and reduce its size, then copy it to your local machine and try to export. If you still have a problem, try emptying your temp folders.
Maybe you are looking for
-
I have recently had to wipe clean my system, and reinstall everything. Before doing so, I transferred what I thought were ALL of my files, only to realize I had "forgotten" my iPhoto library. After re-establishing everything, I realized all of my pho
-
How do I turn off subtitles on my Apple TV 1st Gen?
Every movie I try to watch on my Gen 1 Apple TV has subtitles. It is very distracting and I don't know how to turn them off. I have been through every menu and still can't figure it out. Does any one have any in put?
-
Finder Time Capsule connection problem
On a client's brand new iMac, I clicked on the Time Capsule in Finder and clicked "Connect". It failed, and the console gave the following error: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder[268] SharePointBrowser::handleOpenCallBack
-
Change Pointer ID already exists
Hi All, I am creating material using BAPI_MATERIAL_SAVEDATA I am getting error message "Change Pointer ID already exists" I need your inputs please to resolve this. Regards Martin
-
ALTER SYSTEM KILL SESSION 에 대하여(ORA-30)
제품 : ORACLE SERVER 작성날짜 : 1997-07-30 ALTER SYSTEM KILL SESSION 에 대하여 --- Problem 사용자는 다음과 같은 상황에서 session 을 kill 하려는 시도를 하게 된다. 1. os 에는 process 가 존재하지 않지만, v$session 에는 active 로 존재하고 있을 경우 2. shadow process 는 살아 있는데, client machine 을 rebooting 한 경우