mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
JS -- Implement app object
* https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf * Add color, fullscreen objects + few constants.
This commit is contained in:
parent
c88e805870
commit
283aac4c53
12 changed files with 1259 additions and 19 deletions
|
@ -13,6 +13,105 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
const Border = Object.freeze({
|
||||
s: "solid",
|
||||
d: "dashed",
|
||||
b: "beveled",
|
||||
i: "inset",
|
||||
u: "underline",
|
||||
});
|
||||
|
||||
const Cursor = Object.freeze({
|
||||
visible: 0,
|
||||
hidden: 1,
|
||||
delay: 2,
|
||||
});
|
||||
|
||||
const Display = Object.freeze({
|
||||
visible: 0,
|
||||
hidden: 1,
|
||||
noPrint: 2,
|
||||
noView: 3,
|
||||
});
|
||||
|
||||
const Font = Object.freeze({
|
||||
Times: "Times-Roman",
|
||||
TimesB: "Times-Bold",
|
||||
TimesI: "Times-Italic",
|
||||
TimesBI: "Times-BoldItalic",
|
||||
Helv: "Helvetica",
|
||||
HelvB: "Helvetica-Bold",
|
||||
HelvI: "Helvetica-Oblique",
|
||||
HelvBI: "Helvetica-BoldOblique",
|
||||
Cour: "Courier",
|
||||
CourB: "Courier-Bold",
|
||||
CourI: "Courier-Oblique",
|
||||
CourBI: "Courier-BoldOblique",
|
||||
Symbol: "Symbol",
|
||||
ZapfD: "ZapfDingbats",
|
||||
KaGo: "HeiseiKakuGo-W5-UniJIS-UCS2-H",
|
||||
KaMi: "HeiseiMin-W3-UniJIS-UCS2-H",
|
||||
});
|
||||
|
||||
const Highlight = Object.freeze({
|
||||
n: "none",
|
||||
i: "invert",
|
||||
p: "push",
|
||||
o: "outline",
|
||||
});
|
||||
|
||||
const Position = Object.freeze({
|
||||
textOnly: 0,
|
||||
iconOnly: 1,
|
||||
iconTextV: 2,
|
||||
textIconV: 3,
|
||||
iconTextH: 4,
|
||||
textIconH: 5,
|
||||
overlay: 6,
|
||||
});
|
||||
|
||||
const ScaleHow = Object.freeze({
|
||||
proportional: 0,
|
||||
anamorphic: 1,
|
||||
});
|
||||
|
||||
const ScaleWhen = Object.freeze({
|
||||
always: 0,
|
||||
never: 1,
|
||||
tooBig: 2,
|
||||
tooSmall: 3,
|
||||
});
|
||||
|
||||
const Style = Object.freeze({
|
||||
ch: "check",
|
||||
cr: "cross",
|
||||
di: "diamond",
|
||||
ci: "circle",
|
||||
st: "star",
|
||||
sq: "square",
|
||||
});
|
||||
|
||||
const Trans = Object.freeze({
|
||||
blindsH: "BlindsHorizontal",
|
||||
blindsV: "BlindsVertical",
|
||||
boxI: "BoxIn",
|
||||
boxO: "BoxOut",
|
||||
dissolve: "Dissolve",
|
||||
glitterD: "GlitterDown",
|
||||
glitterR: "GlitterRight",
|
||||
glitterRD: "GlitterRightDown",
|
||||
random: "Random",
|
||||
replace: "Replace",
|
||||
splitHI: "SplitHorizontalIn",
|
||||
splitHO: "SplitHorizontalOut",
|
||||
splitVI: "SplitVerticalIn",
|
||||
splitVO: "SplitVerticalOut",
|
||||
wipeD: "WipeDown",
|
||||
wipeL: "WipeLeft",
|
||||
wipeR: "WipeRight",
|
||||
wipeU: "WipeUp",
|
||||
});
|
||||
|
||||
const ZoomType = Object.freeze({
|
||||
none: "NoVary",
|
||||
fitP: "FitPage",
|
||||
|
@ -23,4 +122,16 @@ const ZoomType = Object.freeze({
|
|||
refW: "ReflowWidth",
|
||||
});
|
||||
|
||||
export { ZoomType };
|
||||
export {
|
||||
Border,
|
||||
Cursor,
|
||||
Display,
|
||||
Font,
|
||||
Highlight,
|
||||
Position,
|
||||
ScaleHow,
|
||||
ScaleWhen,
|
||||
Style,
|
||||
Trans,
|
||||
ZoomType,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue