crystal report export to pdf without viewer c# : Delete page from pdf software SDK dll winforms wpf web page web forms AppleScript%20Reference%20Guide0-part434

bbc
®®Adobe Photoshop cs2
AppleScript Scripting Reference
Delete page from pdf - software SDK dll:C# PDF Page Extract Library: copy, paste, cut PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Easy to Use C# Code to Extract PDF Pages, Copy Pages from One PDF File and Paste into Others
www.rasteredge.com
Delete page from pdf - software SDK dll:VB.NET PDF Page Extract Library: copy, paste, cut PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Detailed VB.NET Guide for Extracting Pages from Microsoft PDF Doc
www.rasteredge.com
© 2005 Adobe Systems Incorporated. All rights reserved. 
Adobe® Creative Suite 2 Photoshop
® 
AppleScript Scripting Reference for Windows
®
and Macintosh
®
.
NOTICE: All information contained herein is the property of Adobe Systems Incorporated. No part of this publication (whether in hardcopy or 
electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or 
otherwise, without the prior written consent of Adobe Systems Incorporated. The software described in this document is furnished under 
license and may only be used or copied in accordance with the terms of such license.
This publication and the information herein is furnished AS IS, is subject to change without notice, and should not be construed as a 
commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or 
inaccuracies, makes no warranty of any kind (express, implied, or statutory) with respect to this publication, and expressly disclaims any and 
all warranties of merchantability, fitness for particular purposes, and noninfringement of third party rights.
Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual 
organization.
Adobe, the Adobe logo, Acrobat, Illustrator, and Photoshop are either registered trademarks or trademarks of Adobe Systems Incorporated in 
the United States and/or other countries.
Apple, Mac, and Macintosh are trademarks of Apple Computer, Inc., registered in the United States and other countries. Microsoft, and 
Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries. JavaScript and all 
Java-related marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. UNIX is a 
registered trademark of The Open Group. 
All other trademarks are the property of their respective owners.
If this guide is distributed with software that includes an end user agreement, this guide, as well as the software described in it, is furnished 
under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part 
of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, 
or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this guide is protected 
under copyright law even if it is not distributed with software that includes an end user license agreement.
The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a 
commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or 
inaccuracies that may appear in the informational content contained in this guide.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA.
software SDK dll:VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
Home ›› XDoc.PDF ›› VB.NET PDF: Delete PDF Page. This page is aimed to help you learn how to delete page from your PDF document in VB.NET application.
www.rasteredge.com
software SDK dll:C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
Pages. |. Home ›› XDoc.PDF ›› C# PDF: Delete PDF Page. Demo Code: How to Delete a Single PDF Page from PDF File in C#.NET. How
www.rasteredge.com
3
Contents
1 Introduction.................................................................................................................................8
Changes Since Earlier Versions..................................................................................................................................................8
2 Action Manager...........................................................................................................................9
Running JavaScript based Action Manager code from AppleScript............................................................................9
3 AppleScript Objects...................................................................................................................10
add noise.........................................................................................................................................................................................11
adjustment options.....................................................................................................................................................................12
application......................................................................................................................................................................................13
art layer, art layers........................................................................................................................................................................15
automatic contrast.......................................................................................................................................................................18
automatic levels............................................................................................................................................................................19
batch options.................................................................................................................................................................................20
Bitmap mode options.................................................................................................................................................................22
blur.....................................................................................................................................................................................................23
blur more.........................................................................................................................................................................................24
BMP save options.........................................................................................................................................................................25
brightness and contrast.............................................................................................................................................................27
camera raw open options.........................................................................................................................................................28
change mode options................................................................................................................................................................30
channel, channels.........................................................................................................................................................................31
clouds...............................................................................................................................................................................................33
CMYK color......................................................................................................................................................................................34
color balance..................................................................................................................................................................................35
color value.......................................................................................................................................................................................36
contact sheet options.................................................................................................................................................................37
curves................................................................................................................................................................................................39
custom filter...................................................................................................................................................................................40
deinterlace......................................................................................................................................................................................41
desaturate.......................................................................................................................................................................................42
despeckle........................................................................................................................................................................................43
difference clouds..........................................................................................................................................................................44
diffuse glow....................................................................................................................................................................................45
displace filter..................................................................................................................................................................................46
document, documents...............................................................................................................................................................47
dust and scratches.......................................................................................................................................................................51
EPS open options.........................................................................................................................................................................52
EPS save options...........................................................................................................................................................................53
equalize............................................................................................................................................................................................55
export options save for web.....................................................................................................................................................56
filter options...................................................................................................................................................................................58
font, fonts........................................................................................................................................................................................59
gallery banner options...............................................................................................................................................................60
gallery color options...................................................................................................................................................................61
gallery images options...............................................................................................................................................................62
software SDK dll:C# PDF File & Page Process Library SDK for C#.net, ASP.NET, MVC
C# File: Merge PDF; C# File: Split PDF; C# Page: Insert PDF pages; C# Page: Delete PDF pages; C# Read: PDF Text Extract; C# Read: PDF
www.rasteredge.com
software SDK dll:C# PDF Page Insert Library: insert pages into PDF file in C#.net
page processing functions, such as how to merge PDF document files by C# code, how to rotate PDF document page, how to delete PDF page using C# .NET, how to
www.rasteredge.com
Adobe Photoshop CS2
AppleScript Scripting Reference
4
gallery options...............................................................................................................................................................................63
gallery security options..............................................................................................................................................................65
gallery thumbnail options.........................................................................................................................................................66
Gaussian blur.................................................................................................................................................................................67
GIF save options............................................................................................................................................................................68
glass filter........................................................................................................................................................................................70
gray color.........................................................................................................................................................................................71
high pass..........................................................................................................................................................................................72
history state, history states.......................................................................................................................................................73
HSB color.........................................................................................................................................................................................74
Illustrator paths export options..............................................................................................................................................75
indexed mode options...............................................................................................................................................................76
info-object.......................................................................................................................................................................................78
inversion..........................................................................................................................................................................................80
JPEG save options........................................................................................................................................................................81
Lab color..........................................................................................................................................................................................82
layer, layers.....................................................................................................................................................................................83
layer comp, layer comps............................................................................................................................................................85
layer set, layer sets.......................................................................................................................................................................86
lens blur...........................................................................................................................................................................................89
lens flare...........................................................................................................................................................................................91
levels adjustment.........................................................................................................................................................................92
maximum filter..............................................................................................................................................................................93
median noise..................................................................................................................................................................................94
minimum filter...............................................................................................................................................................................95
mix channels..................................................................................................................................................................................96
motion blur.....................................................................................................................................................................................97
no color............................................................................................................................................................................................98
notifier, notifiers............................................................................................................................................................................99
NTSC colors..................................................................................................................................................................................100
ocean ripple.................................................................................................................................................................................101
offset filter....................................................................................................................................................................................102
open options...............................................................................................................................................................................103
path item, path items...............................................................................................................................................................104
path point, path points...........................................................................................................................................................106
path point info............................................................................................................................................................................107
PDF open options......................................................................................................................................................................108
PDF save options.......................................................................................................................................................................110
Photo CD open options...........................................................................................................................................................113
Photoshop DCS 1.0 save options.........................................................................................................................................114
Photoshop DCS 2.0 save options.........................................................................................................................................116
Photoshop save options.........................................................................................................................................................118
PICT file save options...............................................................................................................................................................119
PICT resource save options....................................................................................................................................................120
picture package options.........................................................................................................................................................121
pinch..............................................................................................................................................................................................123
Pixar save options.....................................................................................................................................................................124
PNG save options......................................................................................................................................................................125
polar coordinates......................................................................................................................................................................126
posterize.......................................................................................................................................................................................127
presentation options................................................................................................................................................................128
software SDK dll:VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
PDF: Insert PDF Page. VB.NET PDF - How to Insert a New Page to PDF in VB.NET. Easy to Use VB.NET APIs to Add a New Blank Page to PDF Document in VB.NET Program.
www.rasteredge.com
software SDK dll:C# PDF remove image library: remove, delete images from PDF in C#.
C# File: Merge PDF; C# File: Split PDF; C# Page: Insert PDF pages; C# Page: Delete PDF pages; C# Read: PDF Text Extract; C# Read: PDF
www.rasteredge.com
Adobe Photoshop CS2
AppleScript Scripting Reference
5
radial blur.....................................................................................................................................................................................130
raw format open options........................................................................................................................................................131
raw save options........................................................................................................................................................................132
RGB color......................................................................................................................................................................................133
RGB hex color..............................................................................................................................................................................134
ripple..............................................................................................................................................................................................135
save options................................................................................................................................................................................136
selection-object.........................................................................................................................................................................137
selective color.............................................................................................................................................................................138
settings-object...........................................................................................................................................................................139
SGI RGB save options...............................................................................................................................................................143
sharpen.........................................................................................................................................................................................144
sharpen edges............................................................................................................................................................................145
sharpen more..............................................................................................................................................................................146
shear...............................................................................................................................................................................................147
smart blur.....................................................................................................................................................................................148
spherize.........................................................................................................................................................................................149
sub path info...............................................................................................................................................................................150
sub path item, sub path items..............................................................................................................................................151
Targa save options....................................................................................................................................................................152
text-object....................................................................................................................................................................................153
texture fill.....................................................................................................................................................................................161
threshold adjustment..............................................................................................................................................................162
TIFF save options.......................................................................................................................................................................163
twirl.................................................................................................................................................................................................165
unsharp mask..............................................................................................................................................................................166
wave filter.....................................................................................................................................................................................167
XMP metadata............................................................................................................................................................................168
zigzag.............................................................................................................................................................................................169
4 AppleScript Commands..........................................................................................................170
Overview.......................................................................................................................................................................................170
activate..........................................................................................................................................................................................171
adjust.............................................................................................................................................................................................172
apply..............................................................................................................................................................................................173
apply layer style.........................................................................................................................................................................174
change mode..............................................................................................................................................................................175
close...............................................................................................................................................................................................176
clear................................................................................................................................................................................................177
contract.........................................................................................................................................................................................178
convert..........................................................................................................................................................................................179
convert color...............................................................................................................................................................................179
convert to shape........................................................................................................................................................................179
copy................................................................................................................................................................................................180
copy merged...............................................................................................................................................................................180
count..............................................................................................................................................................................................181
create PDF presentation.........................................................................................................................................................182
create photo gallery.................................................................................................................................................................182
create selection..........................................................................................................................................................................182
create work path........................................................................................................................................................................183
crop.................................................................................................................................................................................................184
software SDK dll:VB.NET PDF delete text library: delete, remove text from PDF file
VB.NET: Delete a Character in PDF Page. It demonstrates how to delete a character in the first page of sample PDF file with the location of (123F, 187F).
www.rasteredge.com
software SDK dll:VB.NET PDF remove image library: remove, delete images from PDF in
C# File: Split PDF; C# Page: Insert PDF pages; C# Page: Delete PDF pages; C# Read: PDF Text Extract; Delete image objects in selected PDF page in ASPX webpage.
www.rasteredge.com
Adobe Photoshop CS2
AppleScript Scripting Reference
6
cut...................................................................................................................................................................................................185
delete.............................................................................................................................................................................................186
deselect.........................................................................................................................................................................................187
do action.......................................................................................................................................................................................188
do javascript................................................................................................................................................................................189
duplicate.......................................................................................................................................................................................190
equal colors.................................................................................................................................................................................191
exists..............................................................................................................................................................................................192
expand...........................................................................................................................................................................................193
export............................................................................................................................................................................................194
feather...........................................................................................................................................................................................195
fill.....................................................................................................................................................................................................196
fill path..........................................................................................................................................................................................196
filter................................................................................................................................................................................................198
flatten............................................................................................................................................................................................199
flip canvas....................................................................................................................................................................................200
grow...............................................................................................................................................................................................201
import annotations...................................................................................................................................................................202
index..............................................................................................................................................................................................203
invert..............................................................................................................................................................................................204
link..................................................................................................................................................................................................205
load.................................................................................................................................................................................................206
make...............................................................................................................................................................................................207
make clipping path...................................................................................................................................................................207
make work path.........................................................................................................................................................................208
merge.............................................................................................................................................................................................209
merge visible layers..................................................................................................................................................................209
move..............................................................................................................................................................................................210
open...............................................................................................................................................................................................211
paste...............................................................................................................................................................................................212
print................................................................................................................................................................................................213
purge..............................................................................................................................................................................................214
quit..................................................................................................................................................................................................215
rasterize.........................................................................................................................................................................................216
recapture......................................................................................................................................................................................217
reset from comp........................................................................................................................................................................218
resize canvas...............................................................................................................................................................................219
resize image.................................................................................................................................................................................219
reveal all........................................................................................................................................................................................220
rotate.............................................................................................................................................................................................221
rotate boundary.........................................................................................................................................................................221
rotate canvas...............................................................................................................................................................................221
save.................................................................................................................................................................................................223
scale................................................................................................................................................................................................225
scale boundary...........................................................................................................................................................................225
select..............................................................................................................................................................................................226
select all........................................................................................................................................................................................226
select border...............................................................................................................................................................................226
similar............................................................................................................................................................................................227
smooth..........................................................................................................................................................................................228
split channels..............................................................................................................................................................................229
software SDK dll:C# PDF delete text Library: delete, remove text from PDF file in
C#.NET Sample Code: Delete Text from Specified PDF Page. The following demo code will show how to delete text in specified PDF page. // Open a document.
www.rasteredge.com
software SDK dll:C# PDF metadata Library: add, remove, update PDF metadata in C#.
Allow C# Developers to Read, Add, Edit, Update and Delete PDF Metadata in .NET Project. Remove and delete metadata from PDF file.
www.rasteredge.com
Adobe Photoshop CS2
AppleScript Scripting Reference
7
store................................................................................................................................................................................................230
stroke.............................................................................................................................................................................................231
stroke path...................................................................................................................................................................................231
translate........................................................................................................................................................................................232
translate boundary...................................................................................................................................................................233
trap.................................................................................................................................................................................................234
trim.................................................................................................................................................................................................235
unlink.............................................................................................................................................................................................236
web safe color.............................................................................................................................................................................237
Appendix A: Event ID Codes...................................................................................................238
Index.........................................................................................................................................246
8
1
Introduction
This reference describes the objects and commands in the Adobe® Photoshop® CS2 AppleScript 
dictionary. A companion document, Photoshop CS2 Scripting Guide, describes basic scripting concepts 
and the Photoshop object model. This document provides reference details of the Photoshop object 
model, and additional information on AppleScript-specific features.
This book contains the following sections:
This introduction, which describes scripting support in Adobe Photoshop CS2, and lists changes to the 
AppleScript interface since the previous release.
AppleScript Objects
, which provides a complete reference for all Photoshop DOM objects and 
commands.
AppleScript Commands
, which describes how to use ScriptUI, an ExtendScript component that 
provides a user-interface model to scripters.
Changes Since Earlier Versions
The following changes have been made to the AppleScript object model and language support in Adobe 
Photoshop CS2:
Support for interapplication communication among Creative Suite 2 applications through exported 
ExtendScript functions and interapplication messaging. For details, see the Creative Suite 2 Bridge 
JavaScript Reference.
The following classes have been added to the AppleScript interface:
camera raw open options
, which you use to specify options when opening a document in 
camera raw format. 
export options save for web
, which you use to optimize documents for the Web.
contact sheet options
, which you use to create and format contact sheets. 
batch options
, which you use to specify options for the Batch command.
lens blur options
, which you use to specify options when applying the Lens Blur filter to a layer.
9
2
Action Manager
Adobe Photoshop CS2 actions allow you to save time by automating repetitive tasks. 
Note:You create and run actions in the application interface using the Actions palette. 
You can manage actions in scripts using a utility called the Action Manager. The Action Manager also allows 
you to write scripts that target Adobe Photoshop CS2 functionality that is not otherwise accessible in the 
scripting interface, such as third party plug-ins and filters that are available through the application but 
not in the current scripting reference. 
The only requirement for using the Action Manager is that the task that you want to access from the Action 
Manager is recordable.
This chapter describes how to use the Action Manager and the scripting interface objects it includes.
Running JavaScript based Action Manager code from AppleScript
There is no Action Manager functionality in AppleScript. However, you can execute JavaScript code and 
files from AppleScript using the 
do javascript
command. See 
‘do javascript’ on page 189
.
You need to rewrite your JavaScript code slightly to work with the 
do javascript
command’s arguments 
in order to get access to the AppleScript values from JavaScript. For example save the following JavaScript 
as 
Emboss.jsx
:
function emboss(angle, height, amount)
{
var id32 = charIDToTypeID("Embs");
var desc7 = new ActionDescriptor();
var id33 = charIDToTypeID("Angl");
desc7.putInteger(id33, angle);
var id34 = charIDToTypeID("Hght");
desc7.putInteger(id34, height);
var id35 = charIDToTypeID("Amnt");
desc7.putInteger(id35, amount);
executeAction(id32, desc7);
}
In your AppleScript, call the 
Emboss
function with values provided in the arguments collection, as follows:
emboss(arguments[0], arguments[1], arguments[2]);
The following AppleScript code sample runs the Emboss filter:
tell application "Adobe Photoshop CS2"
do javascript (file <path to Emboss.jsx>) ¬
with arguments { 75,2,89 }
end tell
Note:For information on creating JavaScripts to use with the Action Manager, see Action Manager chapter 
in the Adobe Photoshop CS2 JavaScript Scripting Reference, which is available on the installation CD.
10
3
AppleScript Objects
The objects of the AppleScript dictionary for Adobe Photoshop CS2 are presented alphabetically and in 
tabular format in this chapter. Where appropriate, the object class has two tables:
Element — Lists the classes that inherit from the current class, as well as the methods by which the 
classes can be referred. 
Property — The properties you can use with the object, as well as each property’s value type, input 
status, and description. 
The commands that can be used with an object are listed below the object’s Properties table. 
Sample code for several object classes is given to help illustrate the syntax as well as usage of the object 
class. 
The following sample tables and command list illustrate the format for this chapter. 
Elements
Properties
Valid Commands
change mode
close
convert
count
Element
Refer to by
channel
name, numeric index, as a range of elements, before
after another element, satisfying a test
Property
Value Type
What it is
bits per channel 
Valid values:
eight
one
sixteen
The number of bits per channel.
component channels
list of channels
Read-only. A list of the component color channels.
current channels
list of channel
The selected channels.
current layer
layer
The selected layer. 
info
info-object
Read-only. The document metadata.
Documents you may be interested
Documents you may be interested