Documentation ¶
Index ¶
- Constants
- func BufferToASCIZ(text []byte) *C.char
- func CEncodedString(text string, encoding string) (*C.char, int, error)
- func Version() string
- type Annotation
- func (annot *Annotation) AnnotSetCMYKColor(color CMYKColor)
- func (annot *Annotation) AnnotSetGrayColor(color float32)
- func (annot *Annotation) AnnotSetNoColor()
- func (annot *Annotation) AnnotSetRGBColor(color RGBColor)
- func (annot *Annotation) FreeTextAnnotSet2PointCalloutLine(startPoint Point, endPoint Point)
- func (annot *Annotation) FreeTextAnnotSet3PointCalloutLine(startPoint Point, kneePoint Point, endPoint Point)
- func (annot *Annotation) FreeTextAnnotSetDefaultStyle(style string)
- func (annot *Annotation) FreeTextAnnotSetLineEndingStyle(startStyle int, endStyle int)
- func (annot *Annotation) LineAnnotSetCaption(showCaption bool, position int, horzOffset int, vertOffset int)
- func (annot *Annotation) LineAnnotSetLeader(leaderLen int, leaderExtLen int, leaderOffsetLen int)
- func (annot *Annotation) LineAnnotSetPosition(startPoint Point, startStyle int, endPoint Point, endStyle int)
- func (annot *Annotation) LinkAnnotSetBorderStyle(width float32, dashOn uint16, dashOff uint16)
- func (annot *Annotation) LinkAnnotSetHighlightMode(mode int)
- func (annot *Annotation) LinkAnnotSetJavaScript(javascript JavaScript)
- func (annot *Annotation) MarkupAnnotSetCloudEffect(cloudIntensity int)
- func (annot *Annotation) MarkupAnnotSetCreationDate(value time.Time)
- func (annot *Annotation) MarkupAnnotSetIntent(intent int)
- func (annot *Annotation) MarkupAnnotSetInteriorCMYKColor(color CMYKColor)
- func (annot *Annotation) MarkupAnnotSetInteriorGrayColor(color float32)
- func (annot *Annotation) MarkupAnnotSetInteriorRGBColor(color RGBColor)
- func (annot *Annotation) MarkupAnnotSetInteriorTransparent()
- func (annot *Annotation) MarkupAnnotSetPopup(popup Annotation)
- func (annot *Annotation) MarkupAnnotSetRectDiff(rect Rect)
- func (annot *Annotation) MarkupAnnotSetSubject(name string)
- func (annot *Annotation) MarkupAnnotSetTitle(name string)
- func (annot *Annotation) MarkupAnnotSetTransparency(value float32)
- func (annot *Annotation) PopupAnnotSetOpened(opened bool)
- func (annot *Annotation) SetBorderStyle(subtype int, width float32, dashOn uint16, dashOff uint16, dashPhase uint16)
- func (annot *Annotation) SetExData(exdata ExData)
- func (annot *Annotation) TextAnnotSetIcon(icon int)
- func (annot *Annotation) TextAnnotSetOpened(opened bool)
- func (annot *Annotation) TextMarkupAnnotSetQuadPoints(lb Point, rb Point, rt Point, lt Point)
- type CMYKColor
- type DashMode
- type Destination
- func (dst *Destination) SetFit()
- func (dst *Destination) SetFitB()
- func (dst *Destination) SetFitBH(top float32)
- func (dst *Destination) SetFitBV(left float32)
- func (dst *Destination) SetFitH(top float32)
- func (dst *Destination) SetFitR(left float32, bottom float32, right float32, top float32)
- func (dst *Destination) SetFitV(left float32)
- func (dst *Destination) SetXYZ(left float32, top float32, zoom float32)
- type Doc
- func (pdf *Doc) AddPage() Page
- func (pdf *Doc) AddPageLabel(pageNum uint, style int, firstPage uint, prefix string)
- func (pdf *Doc) AttachFile(file string)
- func (pdf *Doc) Content() []byte
- func (pdf *Doc) CreateExtGState() ExtGState
- func (v *Doc) CreateJavaScript(code string) JavaScript
- func (pdf *Doc) CreateOutline(parent Outline, title string, encoder Encoder) Outline
- func (pdf *Doc) CreateWidgetAnnotWhiteOnlyWhilePrint(page Page, rect Rect) Annotation
- func (pdf *Doc) Free()
- func (pdf *Doc) FreeDoc()
- func (pdf *Doc) GetCurrentEncoder() Encoder
- func (pdf *Doc) GetCurrentPage() Page
- func (pdf *Doc) GetEncoder(encodingName string) Encoder
- func (pdf *Doc) GetError() uint32
- func (pdf *Doc) GetErrorDetail() uint32
- func (pdf *Doc) GetFont(fontName string, encodingName string) Font
- func (pdf *Doc) GetInfoAttr(attr int) string
- func (pdf *Doc) GetPageByIndex(index uint) Page
- func (pdf *Doc) GetPageLayout() int
- func (pdf *Doc) GetPageMode() int
- func (pdf *Doc) InsertPage(page Page) Page
- func (pdf *Doc) LoadIccProfileFromFile(iccFileName string, numComponent int) OutputIntent
- func (v *Doc) LoadJavaScriptFromFile(filename string) JavaScript
- func (v *Doc) LoadJpegImageFromFile(name string) Image
- func (v *Doc) LoadJpegImageFromMem(raw []byte) Image
- func (v *Doc) LoadPngImageFromFile(name string) Image
- func (v *Doc) LoadPngImageFromFile2(name string) Image
- func (v *Doc) LoadPngImageFromMem(raw []byte) Image
- func (pdf *Doc) LoadTTFontFromFile(filename string, embedding bool) string
- func (pdf *Doc) LoadTTFontFromFile2(filename string, index uint, embedding bool) string
- func (pdf *Doc) LoadType1FontFromFile(afmFileName string, dataFileName string) string
- func (pdf *Doc) NewDoc()
- func (pdf *Doc) ResetError()
- func (pdf *Doc) Save(name string)
- func (pdf *Doc) SetCompressionMode(mode int)
- func (pdf *Doc) SetCurrentEncoder(encodingName string)
- func (pdf *Doc) SetEncryptionMode(mode int, keyLen uint)
- func (pdf *Doc) SetInfoAttrDate(attr int, t time.Time)
- func (pdf *Doc) SetInfoAttrString(attr int, value string)
- func (pdf *Doc) SetOpenAction(openAction Destination)
- func (pdf *Doc) SetPageLayout(layout int)
- func (pdf *Doc) SetPageMode(mode int)
- func (pdf *Doc) SetPagesConfiguration(pagePerPages uint)
- func (pdf *Doc) SetPassword(ownerPassword string, userPassword string)
- func (pdf *Doc) SetPermission(permission uint)
- func (pdf *Doc) UseCNSEncodings()
- func (pdf *Doc) UseCNSFonts()
- func (pdf *Doc) UseCNTEncodings()
- func (pdf *Doc) UseCNTFonts()
- func (pdf *Doc) UseJPEncodings()
- func (pdf *Doc) UseJPFonts()
- func (pdf *Doc) UseKREncodings()
- func (pdf *Doc) UseKRFonts()
- func (pdf *Doc) UseUTFEncodings()
- type Encoder
- type ExData
- type ExtGState
- type Font
- func (font *Font) GetAscent() int
- func (font *Font) GetBBox() Rect
- func (font *Font) GetCapHeight() uint
- func (font *Font) GetDescent() int
- func (font *Font) GetEncodingName() string
- func (font *Font) GetFontName() string
- func (font *Font) GetUnicodeWidth(code uint16) int
- func (font *Font) GetXHeight() uint
- func (font *Font) MeasureText(text string, len uint, width float32, fontsize float32, charspace float32, ...) (uint, float32)
- func (font *Font) MeasureTextEncoded(text []byte, len uint, width float32, fontsize float32, charspace float32, ...) (uint, float32)
- func (font *Font) MeasureTextEncoded1(text string, encoding string, width float32, fontsize float32, ...) (uint, float32, error)
- func (font *Font) TextWidth(text string, len uint) TextWidth
- func (font *Font) TextWidthEncoded(text []byte, len uint) TextWidth
- func (font *Font) TextWidthEncoded1(text string, encoding string) (TextWidth, error)
- type Image
- func (i *Image) AddSMask(mask *Image)
- func (i *Image) BitsPerComponent() uint
- func (i *Image) GetColorSpace() string
- func (i *Image) Height() uint
- func (i *Image) SetColorMask(redmin, redmax, greenmin, greenmax, bluemin, bluemax uint)
- func (i *Image) SetImageMask(mask *Image)
- func (i *Image) Size() (uint, uint)
- func (i *Image) Width() uint
- type JavaScript
- type MMgr
- type Outline
- type OutputIntent
- type Page
- func (page *Page) Arc(x float32, y float32, ray float32, ang1 float32, ang2 float32)
- func (page *Page) BeginText()
- func (page *Page) Circle(x float32, y float32, ray float32)
- func (page *Page) Clip()
- func (page *Page) ClosePath()
- func (page *Page) ClosePathEofillStroke()
- func (page *Page) ClosePathFillStroke()
- func (page *Page) ClosePathStroke()
- func (page *Page) Concat(a float32, b float32, c float32, d float32, x float32, y float32)
- func (page *Page) Create3DAnnot(rect Rect, tb bool, np bool, u3d U3D, ap Image) Annotation
- func (page *Page) CreateCircleAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateDestination() Destination
- func (page *Page) CreateFreeTextAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateHighlightAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateLineAnnot(text string, encoder Encoder) Annotation
- func (page *Page) CreateLinkAnnot(rect Rect, dst Destination) Annotation
- func (page *Page) CreatePopupAnnot(rect Rect, parent Annotation) Annotation
- func (page *Page) CreateProjectionAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateSquareAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateSquigglyAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateStampAnnot(rect Rect, name int, text string, encoder Encoder) Annotation
- func (page *Page) CreateStrikeOutAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateTextAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateTextMarkupAnnot(rect Rect, text string, encoder Encoder, subType int) Annotation
- func (page *Page) CreateURILinkAnnot(rect Rect, uri string) Annotation
- func (page *Page) CreateUnderlineAnnot(rect Rect, text string, encoder Encoder) Annotation
- func (page *Page) CreateWidgetAnnot(rect Rect) Annotation
- func (page *Page) CurveTo(x1 float32, y1 float32, x2 float32, y2 float32, x3 float32, y3 float32)
- func (page *Page) CurveTo2(x2 float32, y2 float32, x3 float32, y3 float32)
- func (page *Page) CurveTo3(x1 float32, y1 float32, x3 float32, y3 float32)
- func (page *Page) DrawImage(image Image, x float32, y float32, width float32, height float32)
- func (page *Page) Ellipse(x float32, y float32, xray float32, yray float32)
- func (page *Page) EndPath()
- func (page *Page) EndText()
- func (page *Page) Eoclip()
- func (page *Page) Eofill()
- func (page *Page) EofillStroke()
- func (page *Page) Fill()
- func (page *Page) FillStroke()
- func (page *Page) GRestore()
- func (page *Page) GSave()
- func (page *Page) GetCMYKFill() CMYKColor
- func (page *Page) GetCMYKStroke() CMYKColor
- func (page *Page) GetCharSpace() float32
- func (page *Page) GetCurrentFont() Font
- func (page *Page) GetCurrentFontSize() float32
- func (page *Page) GetCurrentPos() Point
- func (page *Page) GetCurrentTextPos() Point
- func (page *Page) GetDash() DashMode
- func (page *Page) GetFillingColorSpace() int
- func (page *Page) GetFlat() float32
- func (page *Page) GetGMode() uint16
- func (page *Page) GetGStateDepth() uint
- func (page *Page) GetGrayFill() float32
- func (page *Page) GetGrayStroke() float32
- func (page *Page) GetHeight() float32
- func (page *Page) GetHorizontalScalling() float32
- func (page *Page) GetLineCap() int
- func (page *Page) GetLineJoin() int
- func (page *Page) GetLineWidth() float32
- func (page *Page) GetMiterLimit() float32
- func (page *Page) GetPageMMgr() MMgr
- func (page *Page) GetRGBFill() RGBColor
- func (page *Page) GetRGBStroke() RGBColor
- func (page *Page) GetStrokingColorSpace() int
- func (page *Page) GetTextLeading() float32
- func (page *Page) GetTextMatrix() TransMatrix
- func (page *Page) GetTextRaise() float32
- func (page *Page) GetTextRenderingMode() int
- func (page *Page) GetTextRise() float32
- func (page *Page) GetTransMatrix() TransMatrix
- func (page *Page) GetWidth() float32
- func (page *Page) GetWordSpace() float32
- func (page *Page) LineTo(x float32, y float32)
- func (page *Page) MeasureText(text string, width float32, wordwrap bool) (uint, float32)
- func (page *Page) MeasureText1(text string, encoding string, width float32, wordwrap bool) (uint, float32, error)
- func (page *Page) MeasureText2(text []byte, width float32, wordwrap bool) (uint, float32)
- func (page *Page) MoveTextPos(x float32, y float32)
- func (page *Page) MoveTextPos2(x float32, y float32)
- func (page *Page) MoveTo(x float32, y float32)
- func (page *Page) MoveToNextLine()
- func (page *Page) Rectangle(x float32, y float32, width float32, height float32)
- func (page *Page) SetCMYKFill(c CMYKColor)
- func (page *Page) SetCMYKStroke(c CMYKColor)
- func (page *Page) SetCharSpace(value float32)
- func (page *Page) SetDash(mode DashMode)
- func (page *Page) SetExtGState(gstate ExtGState)
- func (page *Page) SetFlat(flatness float32)
- func (page *Page) SetFontAndSize(font Font, size float32)
- func (page *Page) SetGrayFill(gray float32)
- func (page *Page) SetGrayStroke(gray float32)
- func (page *Page) SetHeight(value float32)
- func (page *Page) SetHorizontalScalling(value float32)
- func (page *Page) SetLineCap(lineCap int)
- func (page *Page) SetLineJoin(lineJoin int)
- func (page *Page) SetLineWidth(lineWidth float32)
- func (page *Page) SetMiterLimit(miterLimit float32)
- func (page *Page) SetRGBFill(c RGBColor)
- func (page *Page) SetRGBStroke(c RGBColor)
- func (page *Page) SetRotate(angle uint16)
- func (page *Page) SetSize(size int, orientation int)
- func (page *Page) SetSlideShow(slideShowType int, dispTime float32, transTime float32)
- func (page *Page) SetTextLeading(value float32)
- func (page *Page) SetTextMatrix(m TransMatrix)
- func (page *Page) SetTextRaise(value float32)
- func (page *Page) SetTextRenderingMode(mode int)
- func (page *Page) SetTextRise(value float32)
- func (page *Page) SetWidth(value float32)
- func (page *Page) SetWordSpace(value float32)
- func (page *Page) SetZoom(zoom float32)
- func (page *Page) ShowText(text string)
- func (page *Page) ShowText1(text string, encoding string) error
- func (page *Page) ShowText2(text []byte)
- func (page *Page) ShowTextNextLine(text string)
- func (page *Page) ShowTextNextLine1(text string, encoding string) error
- func (page *Page) ShowTextNextLine2(text []byte)
- func (page *Page) ShowTextNextLineEx(wordSpace float32, charSpace float32, text string)
- func (page *Page) ShowTextNextLineEx1(wordSpace float32, charSpace float32, text string, encoding string) error
- func (page *Page) ShowTextNextLineEx2(wordSpace float32, charSpace float32, text []byte)
- func (page *Page) Stroke()
- func (page *Page) TextOut(xpos float32, ypos float32, text string)
- func (page *Page) TextOut1(xpos float32, ypos float32, text string, encoding string) error
- func (page *Page) TextOut2(xpos float32, ypos float32, text []byte)
- func (page *Page) TextRect(left float32, top float32, right float32, bottom float32, text string, ...) uint32
- func (page *Page) TextWidth(text string) float32
- func (page *Page) TextWidth1(text string, encoding string) (float32, error)
- func (page *Page) TextWidth2(text []byte) float32
- type Point
- type Point3D
- type RGBColor
- type Rect
- type TextWidth
- type TransMatrix
- type U3D
Constants ¶
const Annot3d int = 13
Annot3d is value that indicates annotation type
const AnnotCircle int = 6
AnnotCircle is value that indicates annotation type
const AnnotDownAppearance int = 3
AnnotDownAppearance is highlight mode:
const AnnotFileAttachment int = 11
AnnotFileAttachment is value that indicates annotation type
const AnnotFreeText int = 3
AnnotFreeText is value that indicates annotation type
const AnnotHightlight int = 8
AnnotHightlight is value that indicates annotation type
const AnnotIconComment int = 0
AnnotIconComment is icon type for icon annotation
const AnnotIconHelp int = 3
AnnotIconHelp is icon type for icon annotation
const AnnotIconInsert int = 6
AnnotIconInsert is icon type for icon annotation
const AnnotIconKey int = 1
AnnotIconKey is icon type for icon annotation
const AnnotIconNewParagraph int = 4
AnnotIconNewParagraph is icon type for icon annotation
const AnnotIconNote int = 2
AnnotIconNote is icon type for icon annotation
const AnnotIconParagraph int = 5
AnnotIconParagraph is icon type for icon annotation
const AnnotInk int = 10
AnnotInk is value that indicates annotation type
const AnnotIntentFreetextCallout int = 0
AnnotIntentFreetextCallout is markup annotation intent
const AnnotIntentFreetexttypewriter int = 1
AnnotIntentFreetexttypewriter is markup annotation intent
const AnnotIntentLinearrow int = 2
AnnotIntentLinearrow is markup annotation intent
const AnnotIntentLinedimension int = 3
AnnotIntentLinedimension is markup annotation intent
const AnnotIntentPolygoncloud int = 4
AnnotIntentPolygoncloud is markup annotation intent
const AnnotIntentPolygondimension int = 6
AnnotIntentPolygondimension is markup annotation intent
const AnnotIntentPolylinedimension int = 5
AnnotIntentPolylinedimension is markup annotation intent
const AnnotInvertBorder int = 2
AnnotInvertBorder is highlight mode: invert border
const AnnotInvertBox int = 1
AnnotInvertBox is highlight mode: invert content
const AnnotLine int = 15
AnnotLine is value that indicates annotation type
const AnnotLink int = 1
AnnotLink is value that indicates annotation type
const AnnotNoHightlight int = 0
AnnotNoHightlight is highlight mode: no highlight
const AnnotPopup int = 12
AnnotPopup is value that indicates annotation type
const AnnotProjection int = 16
AnnotProjection is value that indicates annotation type
const AnnotSound int = 2
AnnotSound is value that indicates annotation type
const AnnotSquare int = 5
AnnotSquare is value that indicates annotation type
const AnnotSquiggly int = 14
AnnotSquiggly is value that indicates annotation type
const AnnotStamp int = 4
AnnotStamp is value that indicates annotation type
const AnnotStrikeOut int = 7
AnnotStrikeOut is value that indicates annotation type
const AnnotTextNotes int = 0
AnnotTextNotes is value that indicates annotation type
const AnnotUnderline int = 9
AnnotUnderline is value that indicates annotation type
const AnnotWidget int = 17
AnnotWidget is value that indicates annotation type
const BevelJoin int = 2
BevelJoin is line join style
const BmColorBum int = 7
BmColorBum is blending mode constant
const BmColorDodge int = 6
BmColorDodge is blending mode constant
const BmDarken int = 4
BmDarken is blending mode constant
const BmDifference int = 10
BmDifference is blending mode constant
const BmExclushon int = 11
BmExclushon is blending mode constant
const BmHardLight int = 8
BmHardLight is blending mode constant
const BmLighten int = 5
BmLighten is blending mode constant
const BmMultiply int = 1
BmMultiply is blending mode constant
const BmNormal int = 0
BmNormal is blending mode constant
const BmOverlay int = 3
BmOverlay is blending mode constant
const BmScreen int = 2
BmScreen is blending mode constant
const BmSoftLight int = 9
BmSoftLight is blending mode constant
const BsBeveled int = 2
BsBeveled is a border style subtype
const BsDashed int = 1
BsDashed is a border style subtype
const BsDefWidth int = 1
BsDefWidth is default line width
const BsInset int = 3
BsInset is a border style subtype
const BsSolid int = 0
BsSolid is a border style subtype
const BsUnderlined int = 4
BsUnderlined is a border style subtype
const ButtEnd int = 0
ButtEnd is line end style
const CenterWindow int = 16
CenterWindow is a viewer preference value
const ColorSpaceCalGray int = 3
ColorSpaceCalGray is color space identifier
const ColorSpaceCalRgb int = 4
ColorSpaceCalRgb is color space identifier
const ColorSpaceDeviceCmyk int = 2
ColorSpaceDeviceCmyk is color space identifier
const ColorSpaceDeviceGray int = 0
ColorSpaceDeviceGray is color space identifier
const ColorSpaceDeviceN int = 8
ColorSpaceDeviceN is color space identifier
const ColorSpaceDeviceRgb int = 1
ColorSpaceDeviceRgb is color space identifier
const ColorSpaceIccBased int = 6
ColorSpaceIccBased is color space identifier
const ColorSpaceIndexed int = 9
ColorSpaceIndexed is color space identifier
const ColorSpaceLab int = 5
ColorSpaceLab is color space identifier
const ColorSpacePattern int = 10
ColorSpacePattern is color space identifier
const ColorSpaceSeparation int = 7
ColorSpaceSeparation is color space identifier
const CompAll int = 0x0F
CompAll is flag indicating that document should be saved with full compression
const CompImage int = 0x02
CompImage is flag indicating that document should be saved with images only compression
const CompMetadata int = 0x04
CompMetadata is flag indicating that document should be saved with metadata only compression
const CompNone int = 0x00
CompNone is flag indicating that document should be saved with no compression
const CompText int = 0x01
CompText is flag indicating that document should be saved with text only compression
const CountryAd string = "AD" /* ANDORRA */
CountryAd is country code for /* ANDORRA */
const CountryAe string = "AE" /* UNITED ARAB EMIRATES */
CountryAe is country code for /* UNITED ARAB EMIRATES */
const CountryAf string = "AF" /* AFGHANISTAN */
CountryAf is country code for /* AFGHANISTAN */
const CountryAg string = "AG" /* ANTIGUA AND BARBUDA */
CountryAg is country code for /* ANTIGUA AND BARBUDA */
const CountryAi string = "AI" /* ANGUILLA */
CountryAi is country code for /* ANGUILLA */
const CountryAl string = "AL" /* ALBANIA */
CountryAl is country code for /* ALBANIA */
const CountryAm string = "AM" /* ARMENIA */
CountryAm is country code for /* ARMENIA */
const CountryAn string = "AN" /* NETHERLANDS ANTILLES */
CountryAn is country code for /* NETHERLANDS ANTILLES */
const CountryAo string = "AO" /* ANGOLA */
CountryAo is country code for /* ANGOLA */
const CountryAq string = "AQ" /* ANTARCTICA */
CountryAq is country code for /* ANTARCTICA */
const CountryAr string = "AR" /* ARGENTINA */
CountryAr is country code for /* ARGENTINA */
const CountryAs string = "AS" /* AMERICAN SAMOA */
CountryAs is country code for /* AMERICAN SAMOA */
const CountryAt string = "AT" /* AUSTRIA */
CountryAt is country code for /* AUSTRIA */
const CountryAu string = "AU" /* AUSTRALIA */
CountryAu is country code for /* AUSTRALIA */
const CountryAw string = "AW" /* ARUBA */
CountryAw is country code for /* ARUBA */
const CountryAz string = "AZ" /* AZERBAIJAN */
CountryAz is country code for /* AZERBAIJAN */
const CountryBa string = "BA" /* BOSNIA AND HERZEGOVINA */
CountryBa is country code for /* BOSNIA AND HERZEGOVINA */
const CountryBb string = "BB" /* BARBADOS */
CountryBb is country code for /* BARBADOS */
const CountryBd string = "BD" /* BANGLADESH */
CountryBd is country code for /* BANGLADESH */
const CountryBe string = "BE" /* BELGIUM */
CountryBe is country code for /* BELGIUM */
const CountryBf string = "BF" /* BURKINA FASO */
CountryBf is country code for /* BURKINA FASO */
const CountryBg string = "BG" /* BULGARIA */
CountryBg is country code for /* BULGARIA */
const CountryBh string = "BH" /* BAHRAIN */
CountryBh is country code for /* BAHRAIN */
const CountryBi string = "BI" /* BURUNDI */
CountryBi is country code for /* BURUNDI */
const CountryBj string = "BJ" /* BENIN */
CountryBj is country code for /* BENIN */
const CountryBm string = "BM" /* BERMUDA */
CountryBm is country code for /* BERMUDA */
const CountryBn string = "BN" /* BRUNEI DARUSSALAM */
CountryBn is country code for /* BRUNEI DARUSSALAM */
const CountryBo string = "BO" /* BOLIVIA */
CountryBo is country code for /* BOLIVIA */
const CountryBr string = "BR" /* BRAZIL */
CountryBr is country code for /* BRAZIL */
const CountryBs string = "BS" /* BAHAMAS */
CountryBs is country code for /* BAHAMAS */
const CountryBt string = "BT" /* BHUTAN */
CountryBt is country code for /* BHUTAN */
const CountryBv string = "BV" /* BOUVET ISLAND */
CountryBv is country code for /* BOUVET ISLAND */
const CountryBw string = "BW" /* BOTSWANA */
CountryBw is country code for /* BOTSWANA */
const CountryBy string = "BY" /* BELARUS */
CountryBy is country code for /* BELARUS */
const CountryBz string = "BZ" /* BELIZE */
CountryBz is country code for /* BELIZE */
const CountryCa string = "CA" /* CANADA */
CountryCa is country code for /* CANADA */
const CountryCc string = "CC" /* COCOS (KEELING) ISLANDS */
CountryCc is country code for /* COCOS (KEELING) ISLANDS */
const CountryCf string = "CF" /* CENTRAL AFRICAN REPUBLIC */
CountryCf is country code for /* CENTRAL AFRICAN REPUBLIC */
const CountryCg string = "CG" /* CONGO */
CountryCg is country code for /* CONGO */
const CountryCh string = "CH" /* SWITZERLAND */
CountryCh is country code for /* SWITZERLAND */
const CountryCi string = "CI" /* COTE D'IVOIRE */
CountryCi is country code for /* COTE D'IVOIRE */
const CountryCk string = "CK" /* COOK ISLANDS */
CountryCk is country code for /* COOK ISLANDS */
const CountryCl string = "CL" /* CHILE */
CountryCl is country code for /* CHILE */
const CountryCm string = "CM" /* CAMEROON */
CountryCm is country code for /* CAMEROON */
const CountryCn string = "CN" /* CHINA */
CountryCn is country code for /* CHINA */
const CountryCo string = "CO" /* COLOMBIA */
CountryCo is country code for /* COLOMBIA */
const CountryCr string = "CR" /* COSTA RICA */
CountryCr is country code for /* COSTA RICA */
const CountryCu string = "CU" /* CUBA */
CountryCu is country code for /* CUBA */
const CountryCv string = "CV" /* CAPE VERDE */
CountryCv is country code for /* CAPE VERDE */
const CountryCx string = "CX" /* CHRISTMAS ISLAND */
CountryCx is country code for /* CHRISTMAS ISLAND */
const CountryCy string = "CY" /* CYPRUS */
CountryCy is country code for /* CYPRUS */
const CountryCz string = "CZ" /* CZECH REPUBLIC */
CountryCz is country code for /* CZECH REPUBLIC */
const CountryDe string = "DE" /* GERMANY */
CountryDe is country code for /* GERMANY */
const CountryDj string = "DJ" /* DJIBOUTI */
CountryDj is country code for /* DJIBOUTI */
const CountryDk string = "DK" /* DENMARK */
CountryDk is country code for /* DENMARK */
const CountryDm string = "DM" /* DOMINICA */
CountryDm is country code for /* DOMINICA */
const CountryDo string = "DO" /* DOMINICAN REPUBLIC */
CountryDo is country code for /* DOMINICAN REPUBLIC */
const CountryDz string = "DZ" /* ALGERIA */
CountryDz is country code for /* ALGERIA */
const CountryEc string = "EC" /* ECUADOR */
CountryEc is country code for /* ECUADOR */
const CountryEe string = "EE" /* ESTONIA */
CountryEe is country code for /* ESTONIA */
const CountryEg string = "EG" /* EGYPT */
CountryEg is country code for /* EGYPT */
const CountryEh string = "EH" /* WESTERN SAHARA */
CountryEh is country code for /* WESTERN SAHARA */
const CountryEr string = "ER" /* ERITREA */
CountryEr is country code for /* ERITREA */
const CountryEs string = "ES" /* SPAIN */
CountryEs is country code for /* SPAIN */
const CountryEt string = "ET" /* ETHIOPIA */
CountryEt is country code for /* ETHIOPIA */
const CountryFi string = "FI" /* FINLAND */
CountryFi is country code for /* FINLAND */
const CountryFj string = "FJ" /* FIJI */
CountryFj is country code for /* FIJI */
const CountryFk string = "FK" /* FALKLAND ISLANDS (MALVINAS) */
CountryFk is country code for /* FALKLAND ISLANDS (MALVINAS) */
const CountryFm string = "FM" /* MICRONESIA, FEDERATED STATES OF */
CountryFm is country code for /* MICRONESIA, FEDERATED STATES OF */
const CountryFo string = "FO" /* FAROE ISLANDS */
CountryFo is country code for /* FAROE ISLANDS */
const CountryFr string = "FR" /* FRANCE */
CountryFr is country code for /* FRANCE */
const CountryFx string = "FX" /* FRANCE, METROPOLITAN */
CountryFx is country code for /* FRANCE, METROPOLITAN */
const CountryGa string = "GA" /* GABON */
CountryGa is country code for /* GABON */
const CountryGb string = "GB" /* UNITED KINGDOM */
CountryGb is country code for /* UNITED KINGDOM */
const CountryGd string = "GD" /* GRENADA */
CountryGd is country code for /* GRENADA */
const CountryGe string = "GE" /* GEORGIA */
CountryGe is country code for /* GEORGIA */
const CountryGf string = "GF" /* FRENCH GUIANA */
CountryGf is country code for /* FRENCH GUIANA */
const CountryGh string = "GH" /* GHANA */
CountryGh is country code for /* GHANA */
const CountryGi string = "GI" /* GIBRALTAR */
CountryGi is country code for /* GIBRALTAR */
const CountryGl string = "GL" /* GREENLAND */
CountryGl is country code for /* GREENLAND */
const CountryGm string = "GM" /* GAMBIA */
CountryGm is country code for /* GAMBIA */
const CountryGn string = "GN" /* GUINEA */
CountryGn is country code for /* GUINEA */
const CountryGp string = "GP" /* GUADELOUPE */
CountryGp is country code for /* GUADELOUPE */
const CountryGq string = "GQ" /* EQUATORIAL GUINEA */
CountryGq is country code for /* EQUATORIAL GUINEA */
const CountryGr string = "GR" /* GREECE */
CountryGr is country code for /* GREECE */
const CountryGt string = "GT" /* GUATEMALA */
CountryGt is country code for /* GUATEMALA */
const CountryGu string = "GU" /* GUAM */
CountryGu is country code for /* GUAM */
const CountryGw string = "GW" /* GUINEA-BISSAU */
CountryGw is country code for /* GUINEA-BISSAU */
const CountryGy string = "GY" /* GUYANA */
CountryGy is country code for /* GUYANA */
const CountryHk string = "HK" /* HONG KONG */
CountryHk is country code for /* HONG KONG */
const CountryHm string = "HM" /* HEARD AND MC DONALD ISLANDS */
CountryHm is country code for /* HEARD AND MC DONALD ISLANDS */
const CountryHn string = "HN" /* HONDURAS */
CountryHn is country code for /* HONDURAS */
const CountryHr string = "HR" /* CROATIA (local name: Hrvatska) */
CountryHr is country code for /* CROATIA (local name: Hrvatska) */
const CountryHt string = "HT" /* HAITI */
CountryHt is country code for /* HAITI */
const CountryHu string = "HU" /* HUNGARY */
CountryHu is country code for /* HUNGARY */
const CountryIe string = "IE" /* IRELAND */
CountryIe is country code for /* IRELAND */
const CountryIl string = "IL" /* ISRAEL */
CountryIl is country code for /* ISRAEL */
const CountryIn string = "IN" /* INDIA */
CountryIn is country code for /* INDIA */
const CountryInd string = "ID" /* INDONESIA */
CountryInd is country code for /* INDONESIA */
const CountryIo string = "IO" /* BRITISH INDIAN OCEAN TERRITORY */
CountryIo is country code for /* BRITISH INDIAN OCEAN TERRITORY */
const CountryIq string = "IQ" /* IRAQ */
CountryIq is country code for /* IRAQ */
const CountryIr string = "IR" /* IRAN (ISLAMIC REPUBLIC OF) */
CountryIr is country code for /* IRAN (ISLAMIC REPUBLIC OF) */
const CountryIs string = "IS" /* ICELAND */
CountryIs is country code for /* ICELAND */
const CountryIt string = "IT" /* ITALY */
CountryIt is country code for /* ITALY */
const CountryJm string = "JM" /* JAMAICA */
CountryJm is country code for /* JAMAICA */
const CountryJo string = "JO" /* JORDAN */
CountryJo is country code for /* JORDAN */
const CountryJp string = "JP" /* JAPAN */
CountryJp is country code for /* JAPAN */
const CountryKe string = "KE" /* KENYA */
CountryKe is country code for /* KENYA */
const CountryKg string = "KG" /* KYRGYZSTAN */
CountryKg is country code for /* KYRGYZSTAN */
const CountryKh string = "KH" /* CAMBODIA */
CountryKh is country code for /* CAMBODIA */
const CountryKi string = "KI" /* KIRIBATI */
CountryKi is country code for /* KIRIBATI */
const CountryKm string = "KM" /* COMOROS */
CountryKm is country code for /* COMOROS */
const CountryKn string = "KN" /* SAINT KITTS AND NEVIS */
CountryKn is country code for /* SAINT KITTS AND NEVIS */
const CountryKp string = "KP" /* KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF */
CountryKp is country code for /* KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF */
const CountryKr string = "KR" /* KOREA, REPUBLIC OF */
CountryKr is country code for /* KOREA, REPUBLIC OF */
const CountryKw string = "KW" /* KUWAIT */
CountryKw is country code for /* KUWAIT */
const CountryKy string = "KY" /* CAYMAN ISLANDS */
CountryKy is country code for /* CAYMAN ISLANDS */
const CountryKz string = "KZ" /* KAZAKHSTAN */
CountryKz is country code for /* KAZAKHSTAN */
const CountryLa string = "LA" /* LAO PEOPLE'S DEMOCRATIC REPUBLIC */
CountryLa is country code for /* LAO PEOPLE'S DEMOCRATIC REPUBLIC */
const CountryLb string = "LB" /* LEBANON */
CountryLb is country code for /* LEBANON */
const CountryLc string = "LC" /* SAINT LUCIA */
CountryLc is country code for /* SAINT LUCIA */
const CountryLi string = "LI" /* LIECHTENSTEIN */
CountryLi is country code for /* LIECHTENSTEIN */
const CountryLk string = "LK" /* SRI LANKA */
CountryLk is country code for /* SRI LANKA */
const CountryLr string = "LR" /* LIBERIA */
CountryLr is country code for /* LIBERIA */
const CountryLs string = "LS" /* LESOTHO */
CountryLs is country code for /* LESOTHO */
const CountryLt string = "LT" /* LITHUANIA */
CountryLt is country code for /* LITHUANIA */
const CountryLu string = "LU" /* LUXEMBOURG */
CountryLu is country code for /* LUXEMBOURG */
const CountryLv string = "LV" /* LATVIA */
CountryLv is country code for /* LATVIA */
const CountryLy string = "LY" /* LIBYAN ARAB JAMAHIRIYA */
CountryLy is country code for /* LIBYAN ARAB JAMAHIRIYA */
const CountryMa string = "MA" /* MOROCCO */
CountryMa is country code for /* MOROCCO */
const CountryMc string = "MC" /* MONACO */
CountryMc is country code for /* MONACO */
const CountryMd string = "MD" /* MOLDOVA, REPUBLIC OF */
CountryMd is country code for /* MOLDOVA, REPUBLIC OF */
const CountryMg string = "MG" /* MADAGASCAR */
CountryMg is country code for /* MADAGASCAR */
const CountryMh string = "MH" /* MARSHALL ISLANDS */
CountryMh is country code for /* MARSHALL ISLANDS */
const CountryMk string = "MK" /* MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF */
CountryMk is country code for /* MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF */
const CountryMl string = "ML" /* MALI */
CountryMl is country code for /* MALI */
const CountryMm string = "MM" /* MYANMAR */
CountryMm is country code for /* MYANMAR */
const CountryMn string = "MN" /* MONGOLIA */
CountryMn is country code for /* MONGOLIA */
const CountryMo string = "MO" /* MACAU */
CountryMo is country code for /* MACAU */
const CountryMp string = "MP" /* NORTHERN MARIANA ISLANDS */
CountryMp is country code for /* NORTHERN MARIANA ISLANDS */
const CountryMq string = "MQ" /* MARTINIQUE */
CountryMq is country code for /* MARTINIQUE */
const CountryMr string = "MR" /* MAURITANIA */
CountryMr is country code for /* MAURITANIA */
const CountryMs string = "MS" /* MONTSERRAT */
CountryMs is country code for /* MONTSERRAT */
const CountryMt string = "MT" /* MALTA */
CountryMt is country code for /* MALTA */
const CountryMu string = "MU" /* MAURITIUS */
CountryMu is country code for /* MAURITIUS */
const CountryMv string = "MV" /* MALDIVES */
CountryMv is country code for /* MALDIVES */
const CountryMw string = "MW" /* MALAWI */
CountryMw is country code for /* MALAWI */
const CountryMx string = "MX" /* MEXICO */
CountryMx is country code for /* MEXICO */
const CountryMy string = "MY" /* MALAYSIA */
CountryMy is country code for /* MALAYSIA */
const CountryMz string = "MZ" /* MOZAMBIQUE */
CountryMz is country code for /* MOZAMBIQUE */
const CountryNa string = "NA" /* NAMIBIA */
CountryNa is country code for /* NAMIBIA */
const CountryNc string = "NC" /* NEW CALEDONIA */
CountryNc is country code for /* NEW CALEDONIA */
const CountryNe string = "NE" /* NIGER */
CountryNe is country code for /* NIGER */
const CountryNf string = "NF" /* NORFOLK ISLAND */
CountryNf is country code for /* NORFOLK ISLAND */
const CountryNg string = "NG" /* NIGERIA */
CountryNg is country code for /* NIGERIA */
const CountryNi string = "NI" /* NICARAGUA */
CountryNi is country code for /* NICARAGUA */
const CountryNl string = "NL" /* NETHERLANDS */
CountryNl is country code for /* NETHERLANDS */
const CountryNo string = "NO" /* NORWAY */
CountryNo is country code for /* NORWAY */
const CountryNp string = "NP" /* NEPAL */
CountryNp is country code for /* NEPAL */
const CountryNr string = "NR" /* NAURU */
CountryNr is country code for /* NAURU */
const CountryNu string = "NU" /* NIUE */
CountryNu is country code for /* NIUE */
const CountryNz string = "NZ" /* NEW ZEALAND */
CountryNz is country code for /* NEW ZEALAND */
const CountryOm string = "OM" /* OMAN */
CountryOm is country code for /* OMAN */
const CountryPa string = "PA" /* PANAMA */
CountryPa is country code for /* PANAMA */
const CountryPe string = "PE" /* PERU */
CountryPe is country code for /* PERU */
const CountryPf string = "PF" /* FRENCH POLYNESIA */
CountryPf is country code for /* FRENCH POLYNESIA */
const CountryPg string = "PG" /* PAPUA NEW GUINEA */
CountryPg is country code for /* PAPUA NEW GUINEA */
const CountryPh string = "PH" /* PHILIPPINES */
CountryPh is country code for /* PHILIPPINES */
const CountryPk string = "PK" /* PAKISTAN */
CountryPk is country code for /* PAKISTAN */
const CountryPl string = "PL" /* POLAND */
CountryPl is country code for /* POLAND */
const CountryPm string = "PM" /* ST. PIERRE AND MIQUELON */
CountryPm is country code for /* ST. PIERRE AND MIQUELON */
const CountryPn string = "PN" /* PITCAIRN */
CountryPn is country code for /* PITCAIRN */
const CountryPr string = "PR" /* PUERTO RICO */
CountryPr is country code for /* PUERTO RICO */
const CountryPt string = "PT" /* PORTUGAL */
CountryPt is country code for /* PORTUGAL */
const CountryPw string = "PW" /* PALAU */
CountryPw is country code for /* PALAU */
const CountryPy string = "PY" /* PARAGUAY */
CountryPy is country code for /* PARAGUAY */
const CountryQa string = "QA" /* QATAR */
CountryQa is country code for /* QATAR */
const CountryRe string = "RE" /* REUNION */
CountryRe is country code for /* REUNION */
const CountryRo string = "RO" /* ROMANIA */
CountryRo is country code for /* ROMANIA */
const CountryRu string = "RU" /* RUSSIAN FEDERATION */
CountryRu is country code for /* RUSSIAN FEDERATION */
const CountryRw string = "RW" /* RWANDA */
CountryRw is country code for /* RWANDA */
const CountrySa string = "SA" /* SAUDI ARABIA */
CountrySa is country code for /* SAUDI ARABIA */
const CountrySb string = "SB" /* SOLOMON ISLANDS */
CountrySb is country code for /* SOLOMON ISLANDS */
const CountrySc string = "SC" /* SEYCHELLES */
CountrySc is country code for /* SEYCHELLES */
const CountrySd string = "SD" /* SUDAN */
CountrySd is country code for /* SUDAN */
const CountrySe string = "SE" /* SWEDEN */
CountrySe is country code for /* SWEDEN */
const CountrySg string = "SG" /* SINGAPORE */
CountrySg is country code for /* SINGAPORE */
const CountrySh string = "SH" /* ST. HELENA */
CountrySh is country code for /* ST. HELENA */
const CountrySi string = "SI" /* SLOVENIA */
CountrySi is country code for /* SLOVENIA */
const CountrySj string = "SJ" /* SVALBARD AND JAN MAYEN ISLANDS */
CountrySj is country code for /* SVALBARD AND JAN MAYEN ISLANDS */
const CountrySk string = "SK" /* SLOVAKIA (Slovak Republic) */
CountrySk is country code for /* SLOVAKIA (Slovak Republic) */
const CountrySl string = "SL" /* SIERRA LEONE */
CountrySl is country code for /* SIERRA LEONE */
const CountrySm string = "SM" /* SAN MARINO */
CountrySm is country code for /* SAN MARINO */
const CountrySn string = "SN" /* SENEGAL */
CountrySn is country code for /* SENEGAL */
const CountrySo string = "SO" /* SOMALIA */
CountrySo is country code for /* SOMALIA */
const CountrySr string = "SR" /* SURINAME */
CountrySr is country code for /* SURINAME */
const CountrySt string = "ST" /* SAO TOME AND PRINCIPE */
CountrySt is country code for /* SAO TOME AND PRINCIPE */
const CountrySv string = "SV" /* EL SALVADOR */
CountrySv is country code for /* EL SALVADOR */
const CountrySy string = "SY" /* SYRIAN ARAB REPUBLIC */
CountrySy is country code for /* SYRIAN ARAB REPUBLIC */
const CountrySz string = "SZ" /* SWAZILAND */
CountrySz is country code for /* SWAZILAND */
const CountryTc string = "TC" /* TURKS AND CAICOS ISLANDS */
CountryTc is country code for /* TURKS AND CAICOS ISLANDS */
const CountryTd string = "TD" /* CHAD */
CountryTd is country code for /* CHAD */
const CountryTf string = "TF" /* FRENCH SOUTHERN TERRITORIES */
CountryTf is country code for /* FRENCH SOUTHERN TERRITORIES */
const CountryTg string = "TG" /* TOGO */
CountryTg is country code for /* TOGO */
const CountryTh string = "TH" /* THAILAND */
CountryTh is country code for /* THAILAND */
const CountryTj string = "TJ" /* TAJIKISTAN */
CountryTj is country code for /* TAJIKISTAN */
const CountryTk string = "TK" /* TOKELAU */
CountryTk is country code for /* TOKELAU */
const CountryTm string = "TM" /* TURKMENISTAN */
CountryTm is country code for /* TURKMENISTAN */
const CountryTn string = "TN" /* TUNISIA */
CountryTn is country code for /* TUNISIA */
const CountryTo string = "TO" /* TONGA */
CountryTo is country code for /* TONGA */
const CountryTp string = "TP" /* EAST TIMOR */
CountryTp is country code for /* EAST TIMOR */
const CountryTr string = "TR" /* TURKEY */
CountryTr is country code for /* TURKEY */
const CountryTt string = "TT" /* TRINIDAD AND TOBAGO */
CountryTt is country code for /* TRINIDAD AND TOBAGO */
const CountryTv string = "TV" /* TUVALU */
CountryTv is country code for /* TUVALU */
const CountryTw string = "TW" /* TAIWAN, PROVINCE OF CHINA */
CountryTw is country code for /* TAIWAN, PROVINCE OF CHINA */
const CountryTz string = "TZ" /* TANZANIA, UNITED REPUBLIC OF */
CountryTz is country code for /* TANZANIA, UNITED REPUBLIC OF */
const CountryUa string = "UA" /* UKRAINE */
CountryUa is country code for /* UKRAINE */
const CountryUg string = "UG" /* UGANDA */
CountryUg is country code for /* UGANDA */
const CountryUm string = "UM" /* UNITED STATES MINOR OUTLYING ISLANDS */
CountryUm is country code for /* UNITED STATES MINOR OUTLYING ISLANDS */
const CountryUs string = "US" /* UNITED STATES */
CountryUs is country code for /* UNITED STATES */
const CountryUy string = "UY" /* URUGUAY */
CountryUy is country code for /* URUGUAY */
const CountryUz string = "UZ" /* UZBEKISTAN */
CountryUz is country code for /* UZBEKISTAN */
const CountryVa string = "VA" /* VATICAN CITY STATE (HOLY SEE) */
CountryVa is country code for /* VATICAN CITY STATE (HOLY SEE) */
const CountryVc string = "VC" /* SAINT VINCENT AND THE GRENADINES */
CountryVc is country code for /* SAINT VINCENT AND THE GRENADINES */
const CountryVe string = "VE" /* VENEZUELA */
CountryVe is country code for /* VENEZUELA */
const CountryVg string = "VG" /* VIRGIN ISLANDS (BRITISH) */
CountryVg is country code for /* VIRGIN ISLANDS (BRITISH) */
const CountryVi string = "VI" /* VIRGIN ISLANDS (U.S.) */
CountryVi is country code for /* VIRGIN ISLANDS (U.S.) */
const CountryVn string = "VN" /* VIET NAM */
CountryVn is country code for /* VIET NAM */
const CountryVu string = "VU" /* VANUATU */
CountryVu is country code for /* VANUATU */
const CountryWf string = "WF" /* WALLIS AND FUTUNA ISLANDS */
CountryWf is country code for /* WALLIS AND FUTUNA ISLANDS */
const CountryWs string = "WS" /* SAMOA */
CountryWs is country code for /* SAMOA */
const CountryYe string = "YE" /* YEMEN */
CountryYe is country code for /* YEMEN */
const CountryYt string = "YT" /* MAYOTTE */
CountryYt is country code for /* MAYOTTE */
const CountryYu string = "YU" /* YUGOSLAVIA */
CountryYu is country code for /* YUGOSLAVIA */
const CountryZa string = "ZA" /* SOUTH AFRICA */
CountryZa is country code for /* SOUTH AFRICA */
const CountryZm string = "ZM" /* ZAMBIA */
CountryZm is country code for /* ZAMBIA */
const CountryZr string = "ZR" /* ZAIRE */
CountryZr is country code for /* ZAIRE */
const CountryZw string = "ZW" /* ZIMBABWE */
CountryZw is country code for /* ZIMBABWE */
const DefCharSpace int = 0
DefCharSpace is default character space
const DefFlatness int = 1
DefFlatness is default flatness level
const DefFont string = "Helvetica"
DefFont is default font
const DefFontSize int = 10
DefFontSize is default font size
const DefHscaling int = 100
DefHscaling is default horizontal scaling in percents
const DefLeading int = 0
DefLeading is default leading value
const DefLineWidth int = 1
DefLineWidth default line width
const DefMiterlimit int = 10
DefMiterlimit is default miter limit
const DefPageHeight float32 = 841.89
DefPageHeight is default page height
const DefPageNum int = 1
DefPageNum is default page numeration style
const DefPageWidth float32 = 595.276
DefPageWidth is default page width
const DefRise int = 0
DefRise is default text rise value
const DefWordSpace int = 0
DefWordSpace is default word space
const EnableCopy int = 16
EnableCopy is is permission that enables copying information from the document
const EnableEdit int = 32
EnableEdit is is permission that enables document modification
const EnableEditAll int = 8
EnableEditAll is permission that enables document modification
const EnablePrint int = 4
EnablePrint is permission that enables document printing
const EnableRead int = 0
EnableRead is permission that enables document reading
const EncodingCp1250 string = "CP1250"
EncodingCp1250 is the name of codepage 1250 encoding
const EncodingCp1251 string = "CP1251"
EncodingCp1251 is the name of codepage 1251 encoding
const EncodingCp1252 string = "CP1252"
EncodingCp1252 is the name of codepage 1252 encoding
const EncodingCp1253 string = "CP1253"
EncodingCp1253 is the name of codepage 1253 encoding
const EncodingCp1254 string = "CP1254"
EncodingCp1254 is the name of codepage 1254 encoding
const EncodingCp1255 string = "CP1255"
EncodingCp1255 is the name of codepage 1255 encoding
const EncodingCp1256 string = "CP1256"
EncodingCp1256 is the name of codepage 1256 encoding
const EncodingCp1257 string = "CP1257"
EncodingCp1257 is the name of codepage 1257 encoding
const EncodingCp1258 string = "CP1258"
EncodingCp1258 is the name of codepage 1258 encoding
const EncodingFontSpecific string = "FontSpecific"
EncodingFontSpecific is the name of font specific encoding
const EncodingIso885910 string = "ISO8859-10"
EncodingIso885910 is the name of ISO8859-10 encoding
const EncodingIso885911 string = "ISO8859-11"
EncodingIso885911 is the name of ISO8859-11 encoding
const EncodingIso885913 string = "ISO8859-13"
EncodingIso885913 is the name of ISO8859-13 encoding
const EncodingIso885914 string = "ISO8859-14"
EncodingIso885914 is the name of ISO8859-14 encoding
const EncodingIso885915 string = "ISO8859-15"
EncodingIso885915 is the name of ISO8859-15 encoding
const EncodingIso885916 string = "ISO8859-16"
EncodingIso885916 is the name of ISO8859-16 encoding
const EncodingIso88592 string = "ISO8859-2"
EncodingIso88592 is the name of ISO8859-2 encoding
const EncodingIso88593 string = "ISO8859-3"
EncodingIso88593 is the name of ISO8859-3 encoding
const EncodingIso88594 string = "ISO8859-4"
EncodingIso88594 is the name of ISO8859-4 encoding
const EncodingIso88595 string = "ISO8859-5"
EncodingIso88595 is the name of ISO8859-5 encoding
const EncodingIso88596 string = "ISO8859-6"
EncodingIso88596 is the name of ISO8859-6 encoding
const EncodingIso88597 string = "ISO8859-7"
EncodingIso88597 is the name of ISO8859-7 encoding
const EncodingIso88598 string = "ISO8859-8"
EncodingIso88598 is the name of ISO8859-8 encoding
const EncodingIso88599 string = "ISO8859-9"
EncodingIso88599 is the name of ISO8859-9 encoding
const EncodingKoi8R string = "KOI8-R"
EncodingKoi8R is the name of codepage KOI-8(R) encoding
const EncodingMacRoman string = "MacRomanEncoding"
EncodingMacRoman is the name of mac roman encoding
const EncodingStandard string = "StandardEncoding"
EncodingStandard is the name of the standard encoding
const EncodingWinAnsi string = "WinAnsiEncoding"
EncodingWinAnsi is the name of windows ansi encoding
const EncryptR2 int = 2
EncryptR2 is encryption mode
const EncryptR3 int = 3
EncryptR3 is encryption mode
const ErrAnnotInvalidBorderStyle int = 0x1073
ErrAnnotInvalidBorderStyle is a error code
const ErrAnnotInvalidIcon int = 0x1072
ErrAnnotInvalidIcon is a error code
const ErrArrayCountErr int = 0x1001
ErrArrayCountErr is a error code
const ErrArrayItemNotFound int = 0x1002
ErrArrayItemNotFound is a error code
const ErrArrayItemUnexpectedType int = 0x1003
ErrArrayItemUnexpectedType is a error code
const ErrBinaryLengthErr int = 0x1004
ErrBinaryLengthErr is a error code
const ErrCannotGetPallet int = 0x1005
ErrCannotGetPallet is a error code
const ErrDictCountErr int = 0x1007
ErrDictCountErr is a error code
const ErrDictItemNotFound int = 0x1008
ErrDictItemNotFound is a error code
const ErrDictItemUnexpectedType int = 0x1009
ErrDictItemUnexpectedType is a error code
const ErrDictStreamLengthNotFound int = 0x100A
ErrDictStreamLengthNotFound is a error code
const ErrDocEncryptdictNotFound int = 0x100B
ErrDocEncryptdictNotFound is a error code
const ErrDocInvalidObject int = 0x100C
ErrDocInvalidObject is a error code
const ErrDuplicateRegistration int = 0x100E
ErrDuplicateRegistration is a error code
const ErrEncryptInvalidPassword int = 0x1011
ErrEncryptInvalidPassword is a error code
const ErrErrUnknownClass int = 0x1013
ErrErrUnknownClass is a error code
const ErrExceedGstateLimit int = 0x1014
ErrExceedGstateLimit is a error code
const ErrExceedJwwCodeNumLimit int = 0x100F
ErrExceedJwwCodeNumLimit is a error code
const ErrExtGstateOutOfRange int = 0x1080
ErrExtGstateOutOfRange is a error code
const ErrExtGstateReadOnly int = 0x1082
ErrExtGstateReadOnly is a error code
const ErrFailedToAllocMem int = 0x1015
ErrFailedToAllocMem is a error code
const ErrFileIoError int = 0x1016
ErrFileIoError is a error code
const ErrFileOpenError int = 0x1017
ErrFileOpenError is a error code
const ErrFontExists int = 0x1019
ErrFontExists is a error code
const ErrFontInvalidWidthsTable int = 0x101A
ErrFontInvalidWidthsTable is a error code
const ErrInvalidAfmHeader int = 0x101B
ErrInvalidAfmHeader is a error code
const ErrInvalidAnnotation int = 0x101C
ErrInvalidAnnotation is a error code
const ErrInvalidBitPerComponent int = 0x101E
ErrInvalidBitPerComponent is a error code
const ErrInvalidCharMatrixData int = 0x101F
ErrInvalidCharMatrixData is a error code
const ErrInvalidColorSpace int = 0x1020
ErrInvalidColorSpace is a error code
const ErrInvalidCompressionMode int = 0x1021
ErrInvalidCompressionMode is a error code
const ErrInvalidDateTime int = 0x1022
ErrInvalidDateTime is a error code
const ErrInvalidDestination int = 0x1023
ErrInvalidDestination is a error code
const ErrInvalidDocument int = 0x1025
ErrInvalidDocument is a error code
const ErrInvalidDocumentState int = 0x1026
ErrInvalidDocumentState is a error code
const ErrInvalidEncoder int = 0x1027
ErrInvalidEncoder is a error code
const ErrInvalidEncoderType int = 0x1028
ErrInvalidEncoderType is a error code
const ErrInvalidEncodingName int = 0x102B
ErrInvalidEncodingName is a error code
const ErrInvalidEncryptKeyLen int = 0x102C
ErrInvalidEncryptKeyLen is a error code
const ErrInvalidExtGstate int = 0x1081
ErrInvalidExtGstate is a error code
const ErrInvalidFont int = 0x1075
ErrInvalidFont is a error code
const ErrInvalidFontName int = 0x102F
ErrInvalidFontName is a error code
const ErrInvalidFontdefData int = 0x102D
ErrInvalidFontdefData is a error code
const ErrInvalidFontdefType int = 0x102E
ErrInvalidFontdefType is a error code
const ErrInvalidIccComponentNum int = 0x1085
ErrInvalidIccComponentNum is a error code
const ErrInvalidImage int = 0x1030
ErrInvalidImage is a error code
const ErrInvalidJpegData int = 0x1031
ErrInvalidJpegData is a error code
const ErrInvalidNData int = 0x1032
ErrInvalidNData is a error code
const ErrInvalidObjID int = 0x1034
ErrInvalidObjID is a error code
const ErrInvalidObject int = 0x1033
ErrInvalidObject is a error code
const ErrInvalidOperation int = 0x1035
ErrInvalidOperation is a error code
const ErrInvalidOutline int = 0x1036
ErrInvalidOutline is a error code
const ErrInvalidPage int = 0x1037
ErrInvalidPage is a error code
const ErrInvalidPageIndex int = 0x1067
ErrInvalidPageIndex is a error code
const ErrInvalidPageSlideshowType int = 0x1079
ErrInvalidPageSlideshowType is a error code
const ErrInvalidPages int = 0x1038
ErrInvalidPages is a error code
const ErrInvalidParameter int = 0x1039
ErrInvalidParameter is a error code
const ErrInvalidPngImage int = 0x103B
ErrInvalidPngImage is a error code
const ErrInvalidStream int = 0x103C
ErrInvalidStream is a error code
const ErrInvalidTtcFile int = 0x103F
ErrInvalidTtcFile is a error code
const ErrInvalidTtcIndex int = 0x1040
ErrInvalidTtcIndex is a error code
const ErrInvalidU3dData int = 0x1083
ErrInvalidU3dData is a error code
const ErrInvalidURI int = 0x1068
ErrInvalidURI is a error code
const ErrInvalidWxData int = 0x1041
ErrInvalidWxData is a error code
const ErrItemNotFound int = 0x1042
ErrItemNotFound is a error code
const ErrLibpngError int = 0x1043
ErrLibpngError is a error code
const ErrMissingFileNameEntry int = 0x103D
ErrMissingFileNameEntry is a error code
const ErrNameCannotGetNames int = 0x1084
ErrNameCannotGetNames is a error code
const ErrNameInvalidValue int = 0x1044
ErrNameInvalidValue is a error code
const ErrNameOutOfRange int = 0x1045
ErrNameOutOfRange is a error code
const ErrPageCannotFindObject int = 0x104A
ErrPageCannotFindObject is a error code
const ErrPageCannotGetRootPages int = 0x104B
ErrPageCannotGetRootPages is a error code
const ErrPageCannotRestoreGstate int = 0x104C
ErrPageCannotRestoreGstate is a error code
const ErrPageCannotSetParent int = 0x104D
ErrPageCannotSetParent is a error code
const ErrPageFontNotFound int = 0x104E
ErrPageFontNotFound is a error code
const ErrPageInsufficientSpace int = 0x1076
ErrPageInsufficientSpace is a error code
const ErrPageInvalidDirection int = 0x1074
ErrPageInvalidDirection is a error code
const ErrPageInvalidDisplayTime int = 0x1077
ErrPageInvalidDisplayTime is a error code
const ErrPageInvalidFont int = 0x104F
ErrPageInvalidFont is a error code
const ErrPageInvalidFontSize int = 0x1050
ErrPageInvalidFontSize is a error code
const ErrPageInvalidGmode int = 0x1051
ErrPageInvalidGmode is a error code
const ErrPageInvalidIndex int = 0x1052
ErrPageInvalidIndex is a error code
const ErrPageInvalidParamCount int = 0x1048
ErrPageInvalidParamCount is a error code
const ErrPageInvalidRotateValue int = 0x1053
ErrPageInvalidRotateValue is a error code
const ErrPageInvalidSize int = 0x1054
ErrPageInvalidSize is a error code
const ErrPageInvalidTransitionTime int = 0x1078
ErrPageInvalidTransitionTime is a error code
const ErrPageInvalidXObject int = 0x1055
ErrPageInvalidXObject is a error code
const ErrPageLayoutOutOfRange int = 0x1069
ErrPageLayoutOutOfRange is a error code
const ErrPageModeOutOfRange int = 0x1070
ErrPageModeOutOfRange is a error code
const ErrPageNumStyleOutOfRange int = 0x1071
ErrPageNumStyleOutOfRange is a error code
const ErrPageOutOfRange int = 0x1056
ErrPageOutOfRange is a error code
const ErrPagesMissingKidsEntry int = 0x1049
ErrPagesMissingKidsEntry is a error code
const ErrRealOutOfRange int = 0x1057
ErrRealOutOfRange is a error code
const ErrStreamEOF int = 0x1058
ErrStreamEOF is a error code
const ErrStreamReadContinue int = 0x1059
ErrStreamReadContinue is a error code
const ErrStringOutOfRange int = 0x105B
ErrStringOutOfRange is a error code
const ErrThisFuncWasSkipped int = 0x105C
ErrThisFuncWasSkipped is a error code
const ErrTtfCannotEmbeddingFont int = 0x105D
ErrTtfCannotEmbeddingFont is a error code
const ErrTtfInvalidCharMap int = 0x105E
ErrTtfInvalidCharMap is a error code
const ErrTtfInvalidFormat int = 0x105F
ErrTtfInvalidFormat is a error code
const ErrTtfMissingTable int = 0x1060
ErrTtfMissingTable is a error code
const ErrUnsupportedFontType int = 0x1061
ErrUnsupportedFontType is a error code
const ErrUnsupportedFunc int = 0x1062
ErrUnsupportedFunc is a error code
const ErrUnsupportedJpegFormat int = 0x1063
ErrUnsupportedJpegFormat is a error code
const ErrUnsupportedType1Font int = 0x1064
ErrUnsupportedType1Font is a error code
const ErrXrefCountErr int = 0x1065
ErrXrefCountErr is a error code
const ErrZlibError int = 0x1066
ErrZlibError is a error code
const False int = 0
False is false value for libharu
const FitWindow int = 8
FitWindow is a viewer preference value
const FontAllCap int = 65536
FontAllCap is font type
const FontFixedWidth int = 1
FontFixedWidth is font type
const FontForceBold int = 262144
FontForceBold is font type
const FontItalic int = 64
FontItalic is font type
const FontScript int = 8
FontScript is font type
const FontSerif int = 2
FontSerif is font type
const FontSmallCap int = 131072
FontSmallCap is font type
const FontStdCharset int = 32
FontStdCharset is font type
const FontSymbolic int = 4
FontSymbolic is font type
const GmodeClippingPath int = 0x0008
GmodeClippingPath is page graphics mode
const GmodeExternalObject int = 0x0040
GmodeExternalObject is page graphics mode
const GmodeInlineImage int = 0x0020
GmodeInlineImage is page graphics mode
const GmodePageDescription int = 0x0001
GmodePageDescription is page graphics mode
const GmodePathObject int = 0x0002
GmodePathObject is page graphics mode
const GmodeShading int = 0x0010
GmodeShading is page graphics mode
const GmodeTextObject int = 0x0004
GmodeTextObject is page graphics mode
const HideMenubar int = 2
HideMenubar is a viewer preference value
const HideToolbar int = 1
HideToolbar is a viewer preference value
const HideWindowUI int = 4
HideWindowUI is a viewer preference value
const InfoAuthor int = 2
InfoAuthor is an identifier of an attribute
const InfoCreationDate int = 0
InfoCreationDate is an identifier of a attribute
const InfoCreator int = 3
InfoCreator is an identifier of an attribute
const InfoGtsPdfX int = 9
InfoGtsPdfX is an identifier of an attribute
const InfoKeywords int = 7
InfoKeywords is an identifier of an attribute
const InfoModDate int = 1
InfoModDate is an identifier of a attribute
const InfoProducer int = 4
InfoProducer is an identifier of an attribute
const InfoSubject int = 6
InfoSubject is an identifier of an attribute
const InfoTitle int = 5
InfoTitle is an identifier of an attribute
const InfoTrapped int = 8
InfoTrapped is an identifier of an attribute
const LangAa string = "aa" /* Afar */
LangAa is language code for /* Afar */
const LangAb string = "ab" /* Abkhazian */
LangAb is language code for /* Abkhazian */
const LangAf string = "af" /* Afrikaans */
LangAf is language code for /* Afrikaans */
const LangAm string = "am" /* Amharic */
LangAm is language code for /* Amharic */
const LangAr string = "ar" /* Arabic */
LangAr is language code for /* Arabic */
const LangAs string = "as" /* Assamese */
LangAs is language code for /* Assamese */
const LangAy string = "ay" /* Aymara */
LangAy is language code for /* Aymara */
const LangAz string = "az" /* Azerbaijani */
LangAz is language code for /* Azerbaijani */
const LangBa string = "ba" /* Bashkir */
LangBa is language code for /* Bashkir */
const LangBe string = "be" /* Byelorussian */
LangBe is language code for /* Byelorussian */
const LangBg string = "bg" /* Bulgarian */
LangBg is language code for /* Bulgarian */
const LangBh string = "bh" /* Bihari */
LangBh is language code for /* Bihari */
const LangBi string = "bi" /* Bislama */
LangBi is language code for /* Bislama */
const LangBn string = "bn" /* Bengali Bangla */
LangBn is language code for /* Bengali Bangla */
const LangBo string = "bo" /* Tibetan */
LangBo is language code for /* Tibetan */
const LangBr string = "br" /* Breton */
LangBr is language code for /* Breton */
const LangCa string = "ca" /* Catalan */
LangCa is language code for /* Catalan */
const LangCo string = "co" /* Corsican */
LangCo is language code for /* Corsican */
const LangCs string = "cs" /* Czech */
LangCs is language code for /* Czech */
const LangCy string = "cy" /* Welsh */
LangCy is language code for /* Welsh */
const LangDa string = "da" /* Danish */
LangDa is language code for /* Danish */
const LangDe string = "de" /* German */
LangDe is language code for /* German */
const LangDz string = "dz" /* Bhutani */
LangDz is language code for /* Bhutani */
const LangEl string = "el" /* Greek */
LangEl is language code for /* Greek */
const LangEn string = "en" /* English */
LangEn is language code for /* English */
const LangEo string = "eo" /* Esperanto */
LangEo is language code for /* Esperanto */
const LangEs string = "es" /* Spanish */
LangEs is language code for /* Spanish */
const LangEt string = "et" /* Estonian */
LangEt is language code for /* Estonian */
const LangEu string = "eu" /* Basque */
LangEu is language code for /* Basque */
const LangFa string = "fa" /* Persian */
LangFa is language code for /* Persian */
const LangFi string = "fi" /* Finnish */
LangFi is language code for /* Finnish */
const LangFj string = "fj" /* Fiji */
LangFj is language code for /* Fiji */
const LangFo string = "fo" /* Faeroese */
LangFo is language code for /* Faeroese */
const LangFr string = "fr" /* French */
LangFr is language code for /* French */
const LangFy string = "fy" /* Frisian */
LangFy is language code for /* Frisian */
const LangGa string = "ga" /* Irish */
LangGa is language code for /* Irish */
const LangGd string = "gd" /* Scots Gaelic */
LangGd is language code for /* Scots Gaelic */
const LangGl string = "gl" /* Galician */
LangGl is language code for /* Galician */
const LangGn string = "gn" /* Guarani */
LangGn is language code for /* Guarani */
const LangGu string = "gu" /* Gujarati */
LangGu is language code for /* Gujarati */
const LangHa string = "ha" /* Hausa */
LangHa is language code for /* Hausa */
const LangHi string = "hi" /* Hindi */
LangHi is language code for /* Hindi */
const LangHr string = "hr" /* Croatian */
LangHr is language code for /* Croatian */
const LangHu string = "hu" /* Hungarian */
LangHu is language code for /* Hungarian */
const LangHy string = "hy" /* Armenian */
LangHy is language code for /* Armenian */
const LangIa string = "ia" /* Interlingua */
LangIa is language code for /* Interlingua */
const LangIe string = "ie" /* Interlingue */
LangIe is language code for /* Interlingue */
const LangIk string = "ik" /* Inupiak */
LangIk is language code for /* Inupiak */
const LangIn string = "in" /* Indonesian */
LangIn is language code for /* Indonesian */
const LangIs string = "is" /* Icelandic */
LangIs is language code for /* Icelandic */
const LangIt string = "it" /* Italian */
LangIt is language code for /* Italian */
const LangIw string = "iw" /* Hebrew */
LangIw is language code for /* Hebrew */
const LangJa string = "ja" /* Japanese */
LangJa is language code for /* Japanese */
const LangJi string = "ji" /* Yiddish */
LangJi is language code for /* Yiddish */
const LangJw string = "jw" /* Javanese */
LangJw is language code for /* Javanese */
const LangKa string = "ka" /* Georgian */
LangKa is language code for /* Georgian */
const LangKk string = "kk" /* Kazakh */
LangKk is language code for /* Kazakh */
const LangKl string = "kl" /* Greenlandic */
LangKl is language code for /* Greenlandic */
const LangKm string = "km" /* Cambodian */
LangKm is language code for /* Cambodian */
const LangKn string = "kn" /* Kannada */
LangKn is language code for /* Kannada */
const LangKo string = "ko" /* Korean */
LangKo is language code for /* Korean */
const LangKs string = "ks" /* Kashmiri */
LangKs is language code for /* Kashmiri */
const LangKu string = "ku" /* Kurdish */
LangKu is language code for /* Kurdish */
const LangKy string = "ky" /* Kirghiz */
LangKy is language code for /* Kirghiz */
const LangLa string = "la" /* Latin */
LangLa is language code for /* Latin */
const LangLn string = "ln" /* Lingala */
LangLn is language code for /* Lingala */
const LangLo string = "lo" /* Laothian */
LangLo is language code for /* Laothian */
const LangLt string = "lt" /* Lithuanian */
LangLt is language code for /* Lithuanian */
const LangLv string = "lv" /* Latvian,Lettish */
LangLv is language code for /* Latvian,Lettish */
const LangMg string = "mg" /* Malagasy */
LangMg is language code for /* Malagasy */
const LangMi string = "mi" /* Maori */
LangMi is language code for /* Maori */
const LangMk string = "mk" /* Macedonian */
LangMk is language code for /* Macedonian */
const LangMl string = "ml" /* Malayalam */
LangMl is language code for /* Malayalam */
const LangMn string = "mn" /* Mongolian */
LangMn is language code for /* Mongolian */
const LangMo string = "mo" /* Moldavian */
LangMo is language code for /* Moldavian */
const LangMr string = "mr" /* Marathi */
LangMr is language code for /* Marathi */
const LangMs string = "ms" /* Malay */
LangMs is language code for /* Malay */
const LangMt string = "mt" /* Maltese */
LangMt is language code for /* Maltese */
const LangMy string = "my" /* Burmese */
LangMy is language code for /* Burmese */
const LangNa string = "na" /* Nauru */
LangNa is language code for /* Nauru */
const LangNe string = "ne" /* Nepali */
LangNe is language code for /* Nepali */
const LangNl string = "nl" /* Dutch */
LangNl is language code for /* Dutch */
const LangNo string = "no" /* Norwegian */
LangNo is language code for /* Norwegian */
const LangOc string = "oc" /* Occitan */
LangOc is language code for /* Occitan */
const LangOm string = "om" /* (Afan)Oromo */
LangOm is language code for /* (Afan)Oromo */
const LangOr string = "or" /* Oriya */
LangOr is language code for /* Oriya */
const LangPa string = "pa" /* Punjabi */
LangPa is language code for /* Punjabi */
const LangPl string = "pl" /* Polish */
LangPl is language code for /* Polish */
const LangPs string = "ps" /* Pashto,Pushto */
LangPs is language code for /* Pashto,Pushto */
const LangPt string = "pt" /* Portuguese */
LangPt is language code for /* Portuguese */
const LangQu string = "qu" /* Quechua */
LangQu is language code for /* Quechua */
const LangRm string = "rm" /* Rhaeto-Romance */
LangRm is language code for /* Rhaeto-Romance */
const LangRn string = "rn" /* Kirundi */
LangRn is language code for /* Kirundi */
const LangRo string = "ro" /* Romanian */
LangRo is language code for /* Romanian */
const LangRu string = "ru" /* Russian */
LangRu is language code for /* Russian */
const LangRw string = "rw" /* Kinyarwanda */
LangRw is language code for /* Kinyarwanda */
const LangSa string = "sa" /* Sanskrit */
LangSa is language code for /* Sanskrit */
const LangSd string = "sd" /* Sindhi */
LangSd is language code for /* Sindhi */
const LangSg string = "sg" /* Sangro */
LangSg is language code for /* Sangro */
const LangSh string = "sh" /* Serbo-Croatian */
LangSh is language code for /* Serbo-Croatian */
const LangSi string = "si" /* Singhalese */
LangSi is language code for /* Singhalese */
const LangSk string = "sk" /* Slovak */
LangSk is language code for /* Slovak */
const LangSl string = "sl" /* Slovenian */
LangSl is language code for /* Slovenian */
const LangSm string = "sm" /* Samoan */
LangSm is language code for /* Samoan */
const LangSn string = "sn" /* Shona */
LangSn is language code for /* Shona */
const LangSo string = "so" /* Somali */
LangSo is language code for /* Somali */
const LangSq string = "sq" /* Albanian */
LangSq is language code for /* Albanian */
const LangSr string = "sr" /* Serbian */
LangSr is language code for /* Serbian */
const LangSs string = "ss" /* Siswati */
LangSs is language code for /* Siswati */
const LangSt string = "st" /* Sesotho */
LangSt is language code for /* Sesotho */
const LangSu string = "su" /* Sundanese */
LangSu is language code for /* Sundanese */
const LangSv string = "sv" /* Swedish */
LangSv is language code for /* Swedish */
const LangSw string = "sw" /* Swahili */
LangSw is language code for /* Swahili */
const LangTa string = "ta" /* Tamil */
LangTa is language code for /* Tamil */
const LangTe string = "te" /* Tegulu */
LangTe is language code for /* Tegulu */
const LangTg string = "tg" /* Tajik */
LangTg is language code for /* Tajik */
const LangTh string = "th" /* Thai */
LangTh is language code for /* Thai */
const LangTi string = "ti" /* Tigrinya */
LangTi is language code for /* Tigrinya */
const LangTk string = "tk" /* Turkmen */
LangTk is language code for /* Turkmen */
const LangTl string = "tl" /* Tagalog */
LangTl is language code for /* Tagalog */
const LangTn string = "tn" /* Setswanato Tonga */
LangTn is language code for /* Setswanato Tonga */
const LangTr string = "tr" /* Turkish */
LangTr is language code for /* Turkish */
const LangTs string = "ts" /* Tsonga */
LangTs is language code for /* Tsonga */
const LangTt string = "tt" /* Tatar */
LangTt is language code for /* Tatar */
const LangTw string = "tw" /* Twi */
LangTw is language code for /* Twi */
const LangUk string = "uk" /* Ukrainian */
LangUk is language code for /* Ukrainian */
const LangUr string = "ur" /* Urdu */
LangUr is language code for /* Urdu */
const LangUz string = "uz" /* Uzbek */
LangUz is language code for /* Uzbek */
const LangVi string = "vi" /* Vietnamese */
LangVi is language code for /* Vietnamese */
const LangVo string = "vo" /* Volapuk */
LangVo is language code for /* Volapuk */
const LangWo string = "wo" /* Wolof */
LangWo is language code for /* Wolof */
const LangXh string = "xh" /* Xhosa */
LangXh is language code for /* Xhosa */
const LangYo string = "yo" /* Yoruba */
LangYo is language code for /* Yoruba */
const LangZh string = "zh" /* Chinese */
LangZh is language code for /* Chinese */
const LangZu string = "zu" /* Zulu */
LangZu is language code for /* Zulu */
const LimitMaxArray int = 8388607 // per PDF 1.7 spec, "Maximum number of indirect objects in a PDF file" is 8388607, old value 8191
LimitMaxArray the maximum number of object in PDF file
const LimitMaxCid int = 65535
LimitMaxCid ???
const LimitMaxDeviceN int = 8
LimitMaxDeviceN ???
const LimitMaxDeviceNV15 int = 32
LimitMaxDeviceNV15 ???
const LimitMaxDictElement int = 8388607 // per PDF 1.7 spec, "Maximum number of indirect objects in a PDF file" is 8388607, old value 4095
LimitMaxDictElement the maxmum dictionary elements
const LimitMaxGstate int = 28
LimitMaxGstate the maximum of states in stack
const LimitMaxInt int = 2147483647
LimitMaxInt is maximum integer value for PDF 1.4
const LimitMaxNameLen int = 127
LimitMaxNameLen is maximum object name length for PDF 1.4
const LimitMaxReal float32 = 3.4e38 // per PDF 1.7 spec, Annex C, old value 32767
LimitMaxReal is maximum real value for PDF 1.4
const LimitMaxStringLen int = 2147483646 // per PDF 1.7 spec, limit 32767 is for strings in content stream and no limit in other cases => open the limit to max Integer, old value 65535
LimitMaxStringLen is maximum text length for PDF 1.4
const LimitMaxXrefElement int = 8388607
LimitMaxXrefElement the maximum XRef elements
const LimitMinInt int = -2147483647
LimitMinInt is minimum integer value for PDF 1.4
const LimitMinReal float32 = -3.4e38 // per PDF 1.7 spec, Annex C, old value -32767
LimitMinReal is minimum real value for PDF 1.4
const LineAnnotButt int = 6
LineAnnotButt is line annotation type
const LineAnnotCapInline int = 0
LineAnnotCapInline is line annotation line caption type
const LineAnnotCapTop int = 1
LineAnnotCapTop is line annotation line caption type
const LineAnnotCircle int = 2
LineAnnotCircle is line annotation type
const LineAnnotClosedarrow int = 5
LineAnnotClosedarrow is line annotation type
const LineAnnotDiamond int = 3
LineAnnotDiamond is line annotation type
const LineAnnotNone int = 0
LineAnnotNone is line annotation type
const LineAnnotOpenarrow int = 4
LineAnnotOpenarrow is line annotation type
const LineAnnotRClosedArrow int = 8
LineAnnotRClosedArrow is line annotation type
const LineAnnotROpenArrow int = 7
LineAnnotROpenArrow is line annotation type
const LineAnnotSlash int = 9
LineAnnotSlash is line annotation type
const LineAnnotSquare int = 1
LineAnnotSquare is line annotation type
const MaxCharspace int = 300
MaxCharspace is the maximum character space
const MaxDashPattern int = 100
MaxDashPattern is maximum hash pattern length
const MaxFontSize int = 600
MaxFontSize is the maximum font size
const MaxGenerationNum int = 65535
MaxGenerationNum ???
const MaxHorizontalscaling int = 300
MaxHorizontalscaling is the maximum horizontal scaling
const MaxJwwNum int = 128
MaxJwwNum is ???
const MaxLeading int = 300
MaxLeading is the maximum leading
const MaxLineWidth int = 100
MaxLineWidth is maximum line width
const MaxMagnificationFactor int = 3200
MaxMagnificationFactor the maximum magnification factor
const MaxPageHeight int = 14400
MaxPageHeight is the maximum page height
const MaxPageSize int = 14400
MaxPageSize is the maximum page size
const MaxPageWidth int = 14400
MaxPageWidth is the maximum page width
const MaxWordspace int = 300
MaxWordspace is the maximum word space
const MaxZoomSize int = 10
MaxZoomSize is the minimum font size
const MinCharspace int = -30
MinCharspace is the minimum character space
const MinHorizontalscaling int = 10
MinHorizontalscaling is the minimum horizontal scaling
const MinMagnificationFactor int = 8
MinMagnificationFactor is the minimum magnification factor
const MinPageHeight int = 3
MinPageHeight is the mimimum page height
const MinPageSize int = 3
MinPageSize is the minimum page size
const MinPageWidth int = 3
MinPageWidth the mimimum page width
const MinWordspace int = -30
MinWordspace is the minimum word space
const MiterJoin int = 0
MiterJoin is line join style
const Noerror int = 0
Noerror no error value for libharu
const Ok int = 0
Ok is no error value for libharu
const PageLandscape int = 1
PageLandscape is orientation
const PageLayoutOneColumn int = 1
PageLayoutOneColumn is page layout style
const PageLayoutSingle int = 0
PageLayoutSingle is page layout style
const PageLayoutTwoColumnLeft int = 2
PageLayoutTwoColumnLeft is page layout style
const PageLayoutTwoColumnRight int = 3
PageLayoutTwoColumnRight is page layout style
const PageLayoutTwoPageLeft int = 4
PageLayoutTwoPageLeft is page layout style
const PageLayoutTwoPageRight int = 5
PageLayoutTwoPageRight is page layout style
const PageModeFullScreen int = 3
PageModeFullScreen is page use mode
const PageModeUseNone int = 0
PageModeUseNone is page use mode
const PageModeUseOutline int = 1
PageModeUseOutline is page use mode
const PageModeUseThumbs int = 2
PageModeUseThumbs is page use mode
const PageNumStyleDecimal int = 0
PageNumStyleDecimal is page numeration style
const PageNumStyleLowerLetters int = 4
PageNumStyleLowerLetters is page numeration style
const PageNumStyleLowerRoman int = 2
PageNumStyleLowerRoman is page numeration style
const PageNumStyleUpperLetters int = 3
PageNumStyleUpperLetters is page numeration style
const PageNumStyleUpperRoman int = 1
PageNumStyleUpperRoman is page numeration style
const PagePortrait int = 0
PagePortrait is page orientation
const PageSizeA3 int = 2
PageSizeA3 is page size
const PageSizeA4 int = 3
PageSizeA4 is page size
const PageSizeA5 int = 4
PageSizeA5 is page size
const PageSizeB4 int = 5
PageSizeB4 is page size
const PageSizeB5 int = 6
PageSizeB5 is page size
const PageSizeComm10 int = 11
PageSizeComm10 is page size
const PageSizeExecutive int = 7
PageSizeExecutive is page size
const PageSizeLegal int = 1
PageSizeLegal is page size
const PageSizeLetter int = 0
PageSizeLetter is page size
const PageSizeUs4x6 int = 8
PageSizeUs4x6 is page size
const PageSizeUs4x8 int = 9
PageSizeUs4x8 is page size
const PageSizeUs5x7 int = 10
PageSizeUs5x7 is page size
const PrintScalingNone int = 32
PrintScalingNone is a viewer preference value
const ProjectingSquareEnd int = 2
ProjectingSquareEnd is line end style
const RoundEnd int = 1
RoundEnd is line end style
const RoundJoin int = 1
RoundJoin is line join style
const StampAnnotApproved int = 0
StampAnnotApproved is value indicating "APPROVED" stamp type
const StampAnnotAsis int = 3
StampAnnotAsis is value indicating "AS IS" stamp type
const StampAnnotConfidential int = 6
StampAnnotConfidential is value indicating "CONFIDENTIAL stamp type"
const StampAnnotDepartmental int = 9
StampAnnotDepartmental is value indicating "DEPARTMENTAL" stamp type
const StampAnnotDraft int = 12
StampAnnotDraft is value indicating "DRAFT" stamp type
const StampAnnotExperimental int = 1
StampAnnotExperimental is value indicating "EXPERIMENTAL" stamp type
const StampAnnotExpired int = 4
StampAnnotExpired is value indicating "EXPIRED" stamp type
const StampAnnotFinal int = 7
StampAnnotFinal is value indicating "FINAL" stamp type
const StampAnnotForComment int = 10
StampAnnotForComment is value indicating "FOR COMMENT" stamp type
const StampAnnotForPublicRelease int = 13
StampAnnotForPublicRelease is value indicating "FOR PUBLIC RELEASE" stamp type
const StampAnnotNotForPublicRelease int = 5
StampAnnotNotForPublicRelease is value indicating "NOT FOR PUBLIC RELEASE" stamp type
const StampAnnotNotapproved int = 2
StampAnnotNotapproved is value indicating "NOT APPROVED" stamp type
const StampAnnotSold int = 8
StampAnnotSold is value indicating "SOLD" stamp type
const StampAnnotTopSecret int = 11
StampAnnotTopSecret is value indicating "TOP SECRET" stamp type
const TextAlignCenter int = 2
TextAlignCenter is text alignment
const TextAlignJustify int = 3
TextAlignJustify is text alignment
const TextAlignLeft int = 0
TextAlignLeft is text alignment
const TextAlignRight int = 1
TextAlignRight is text alignment
const TextRenderClipping int = 7
TextRenderClipping is text rendering mode
const TextRenderFill int = 0
TextRenderFill is text rendering mode
const TextRenderFillClipping int = 4
TextRenderFillClipping is text rendering mode
const TextRenderFillStrokeClipping int = 6
TextRenderFillStrokeClipping is text rendering mode
const TextRenderFillThenStroke int = 2
TextRenderFillThenStroke is text rendering mode
const TextRenderInvisible int = 3
TextRenderInvisible is text rendering mode
const TextRenderStroke int = 1
TextRenderStroke is text rendering mode
const TextRenderStrokeClipping int = 5
TextRenderStrokeClipping is text rendering mode
const True int = 1
True is true value for libharu
const TsBarnDoorsHorizontalIn int = 5
TsBarnDoorsHorizontalIn is slide show mode
const TsBarnDoorsHorizontalOut int = 4
TsBarnDoorsHorizontalOut is slide show mode
const TsBarnDoorsVerticalIn int = 7
TsBarnDoorsVerticalIn is slide show mode
const TsBarnDoorsVerticalOut int = 6
TsBarnDoorsVerticalOut is slide show mode
const TsBlindsHorizontal int = 10
TsBlindsHorizontal is slide show mode
const TsBlindsVertical int = 11
TsBlindsVertical is slide show mode
const TsBoxIn int = 8
TsBoxIn is slide show mode
const TsBoxOut int = 8
TsBoxOut is slide show mode
const TsDissolve int = 12
TsDissolve is slide show mode
const TsGlitterDown int = 14
TsGlitterDown is slide show mode
const TsGlitterRight int = 13
TsGlitterRight is slide show mode
const TsGlitterTopLeftToBottomRight int = 15
TsGlitterTopLeftToBottomRight is slide show mode
const TsReplace int = 16
TsReplace is slide show mode
const TsWipeDown int = 3
TsWipeDown is slide show mode
const TsWipeLeft int = 2
TsWipeLeft is slide show mode
const TsWipeRight int = 0
TsWipeRight is slide show mode
const TsWipeUp int = 1
TsWipeUp is slide show mode
const WritingModeHorizontal int = 0
WritingModeHorizontal is encoding writing mode
const WritingModeVertical int = 1
WritingModeVertical is encoding writing mode
Variables ¶
This section is empty.
Functions ¶
func BufferToASCIZ ¶
BufferToASCIZ converts a byte buffer into zero-terminated ASCIZ string
The returned value must be freed using C.free
func CEncodedString ¶
CEncodedString creates an ASCIZ native string in specified encoding
The returned value must be freed using C.free
Types ¶
type Annotation ¶
type Annotation struct {
// contains filtered or unexported fields
}
Annotation struct refers to haru annotation object
func (*Annotation) AnnotSetCMYKColor ¶
func (annot *Annotation) AnnotSetCMYKColor(color CMYKColor)
AnnotSetCMYKColor set annotation color
func (*Annotation) AnnotSetGrayColor ¶
func (annot *Annotation) AnnotSetGrayColor(color float32)
AnnotSetGrayColor sets annotation color as a shade of gray
func (*Annotation) AnnotSetNoColor ¶
func (annot *Annotation) AnnotSetNoColor()
AnnotSetNoColor removes annotation color information
func (*Annotation) AnnotSetRGBColor ¶
func (annot *Annotation) AnnotSetRGBColor(color RGBColor)
AnnotSetRGBColor sets annotation color
func (*Annotation) FreeTextAnnotSet2PointCalloutLine ¶
func (annot *Annotation) FreeTextAnnotSet2PointCalloutLine(startPoint Point, endPoint Point)
FreeTextAnnotSet2PointCalloutLine set free text annotation callout line coordinates
func (*Annotation) FreeTextAnnotSet3PointCalloutLine ¶
func (annot *Annotation) FreeTextAnnotSet3PointCalloutLine(startPoint Point, kneePoint Point, endPoint Point)
FreeTextAnnotSet3PointCalloutLine sets free text annotation callout line coordinates
func (*Annotation) FreeTextAnnotSetDefaultStyle ¶
func (annot *Annotation) FreeTextAnnotSetDefaultStyle(style string)
FreeTextAnnotSetDefaultStyle sets free text annotation style
func (*Annotation) FreeTextAnnotSetLineEndingStyle ¶
func (annot *Annotation) FreeTextAnnotSetLineEndingStyle(startStyle int, endStyle int)
FreeTextAnnotSetLineEndingStyle sets end line style for free text annotation
Use LineAnnot* values to set style
func (*Annotation) LineAnnotSetCaption ¶
func (annot *Annotation) LineAnnotSetCaption(showCaption bool, position int, horzOffset int, vertOffset int)
LineAnnotSetCaption sets line annotation line caption
use LineAnnotationCap* values
func (*Annotation) LineAnnotSetLeader ¶
func (annot *Annotation) LineAnnotSetLeader(leaderLen int, leaderExtLen int, leaderOffsetLen int)
LineAnnotSetLeader sets line annotation leader
func (*Annotation) LineAnnotSetPosition ¶
func (annot *Annotation) LineAnnotSetPosition(startPoint Point, startStyle int, endPoint Point, endStyle int)
LineAnnotSetPosition sets line annotation position
func (*Annotation) LinkAnnotSetBorderStyle ¶
func (annot *Annotation) LinkAnnotSetBorderStyle(width float32, dashOn uint16, dashOff uint16)
LinkAnnotSetBorderStyle defines the style of the annotation's border.
func (*Annotation) LinkAnnotSetHighlightMode ¶
func (annot *Annotation) LinkAnnotSetHighlightMode(mode int)
LinkAnnotSetHighlightMode defines the appearance when a mouse clicks on a link annotation. (see example program)
Use AnnotNoHightlight, AnnotInvertBox, AnnotInvertBorder or AnnotDownAppearance as mode
func (*Annotation) LinkAnnotSetJavaScript ¶
func (annot *Annotation) LinkAnnotSetJavaScript(javascript JavaScript)
LinkAnnotSetJavaScript sets javascript to executed by the link annotation
func (*Annotation) MarkupAnnotSetCloudEffect ¶
func (annot *Annotation) MarkupAnnotSetCloudEffect(cloudIntensity int)
MarkupAnnotSetCloudEffect sets markup cloud effect intensity
func (*Annotation) MarkupAnnotSetCreationDate ¶
func (annot *Annotation) MarkupAnnotSetCreationDate(value time.Time)
MarkupAnnotSetCreationDate sets markup annotation date
func (*Annotation) MarkupAnnotSetIntent ¶
func (annot *Annotation) MarkupAnnotSetIntent(intent int)
MarkupAnnotSetIntent sets intent of markup annotation
func (*Annotation) MarkupAnnotSetInteriorCMYKColor ¶
func (annot *Annotation) MarkupAnnotSetInteriorCMYKColor(color CMYKColor)
MarkupAnnotSetInteriorCMYKColor sets markup annotation interior color
func (*Annotation) MarkupAnnotSetInteriorGrayColor ¶
func (annot *Annotation) MarkupAnnotSetInteriorGrayColor(color float32)
MarkupAnnotSetInteriorGrayColor sets markup annotation interior color as a shade of gray
func (*Annotation) MarkupAnnotSetInteriorRGBColor ¶
func (annot *Annotation) MarkupAnnotSetInteriorRGBColor(color RGBColor)
MarkupAnnotSetInteriorRGBColor sets markup annotation interior color
func (*Annotation) MarkupAnnotSetInteriorTransparent ¶
func (annot *Annotation) MarkupAnnotSetInteriorTransparent()
MarkupAnnotSetInteriorTransparent makes markup annotation interior transparent
func (*Annotation) MarkupAnnotSetPopup ¶
func (annot *Annotation) MarkupAnnotSetPopup(popup Annotation)
MarkupAnnotSetPopup sets annotation that popups at markup annotation
func (*Annotation) MarkupAnnotSetRectDiff ¶
func (annot *Annotation) MarkupAnnotSetRectDiff(rect Rect)
MarkupAnnotSetRectDiff sets markup annotation rectangle
func (*Annotation) MarkupAnnotSetSubject ¶
func (annot *Annotation) MarkupAnnotSetSubject(name string)
MarkupAnnotSetSubject sets markup annotation subject
func (*Annotation) MarkupAnnotSetTitle ¶
func (annot *Annotation) MarkupAnnotSetTitle(name string)
MarkupAnnotSetTitle sets markup annotation title
func (*Annotation) MarkupAnnotSetTransparency ¶
func (annot *Annotation) MarkupAnnotSetTransparency(value float32)
MarkupAnnotSetTransparency sets markup annotation transparency
func (*Annotation) PopupAnnotSetOpened ¶
func (annot *Annotation) PopupAnnotSetOpened(opened bool)
PopupAnnotSetOpened makes popup annotation opened or closed by default
func (*Annotation) SetBorderStyle ¶
func (annot *Annotation) SetBorderStyle(subtype int, width float32, dashOn uint16, dashOff uint16, dashPhase uint16)
SetBorderStyle defines the appearance of a text annotation.
Use Bs* value as a subtype
func (*Annotation) SetExData ¶
func (annot *Annotation) SetExData(exdata ExData)
SetExData associates the annotation with ExData object
func (*Annotation) TextAnnotSetIcon ¶
func (annot *Annotation) TextAnnotSetIcon(icon int)
TextAnnotSetIcon defines the style of the annotation's icon. (see example program)
Use AnnotIcon* values as icon parameter
func (*Annotation) TextAnnotSetOpened ¶
func (annot *Annotation) TextAnnotSetOpened(opened bool)
TextAnnotSetOpened defines whether the text-annotation is initially open.
func (*Annotation) TextMarkupAnnotSetQuadPoints ¶
func (annot *Annotation) TextMarkupAnnotSetQuadPoints(lb Point, rb Point, rt Point, lt Point)
TextMarkupAnnotSetQuadPoints sets markup annotation coordinates
type CMYKColor ¶
type CMYKColor struct {
C, M, Y, K float32
}
CMYKColor keeps a color as CMYK color.
The components are expressed as value between 0 and 1.
type DashMode ¶
DashMode struct is used to store information on how to draw one dash of a dashed line
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
Destination struct
func (*Destination) SetFitH ¶
func (dst *Destination) SetFitH(top float32)
SetFitH makes the destination to fit horizontally
func (*Destination) SetFitR ¶
func (dst *Destination) SetFitR(left float32, bottom float32, right float32, top float32)
SetFitR set destination to fit a rectangle
func (*Destination) SetFitV ¶
func (dst *Destination) SetFitV(left float32)
SetFitV makes the destination to fit vertically
type Doc ¶
type Doc struct {
// contains filtered or unexported fields
}
The Doc structure represents the haru engine
func (*Doc) AddPageLabel ¶
AddPageLabel adds a page labeling range for the document.
Use PageNumStyle* values as a value for style
func (*Doc) AttachFile ¶
AttachFile attaches the file to the document
func (*Doc) CreateExtGState ¶
CreateExtGState create G-state
func (*Doc) CreateJavaScript ¶
func (v *Doc) CreateJavaScript(code string) JavaScript
CreateJavaScript creates JavaScript using the source code
func (*Doc) CreateOutline ¶
CreateOutline creates a new outline object.
func (*Doc) CreateWidgetAnnotWhiteOnlyWhilePrint ¶
func (pdf *Doc) CreateWidgetAnnotWhiteOnlyWhilePrint(page Page, rect Rect) Annotation
CreateWidgetAnnotWhiteOnlyWhilePrint creates widget annotation that exists only at prints
func (*Doc) GetCurrentEncoder ¶
GetCurrentEncoder gets the handle of the current encoder of the document object.
func (*Doc) GetCurrentPage ¶
GetCurrentPage gets current page of the document
func (*Doc) GetEncoder ¶
GetEncoder gets the handle of an encoder object by specified encoding name.
func (*Doc) GetError ¶
GetError gets last error code
The function is used to check error if panicIfError parameter is not set in New function
func (*Doc) GetErrorDetail ¶
GetErrorDetail gets last error detail code
The function is used to check error if panicIfError parameter is not set in New function TBD: GetErrorDetail
func (*Doc) GetInfoAttr ¶
GetInfoAttr gets info attribute value
The attr value may be any of INFO_* GetInfoAttr gets an attribute value from info dictionary.
func (*Doc) GetPageByIndex ¶
GetPageByIndex gets page of the document by its index
func (*Doc) GetPageLayout ¶
GetPageLayout returns the handle of current page object.
The function returns PageLayout* value
func (*Doc) InsertPage ¶
InsertPage creates a new page and inserts it just before the specified page.
func (*Doc) LoadIccProfileFromFile ¶
func (pdf *Doc) LoadIccProfileFromFile(iccFileName string, numComponent int) OutputIntent
LoadIccProfileFromFile loads color profile from the file
func (*Doc) LoadJavaScriptFromFile ¶
func (v *Doc) LoadJavaScriptFromFile(filename string) JavaScript
LoadJavaScriptFromFile loads JavaScript from a file
func (*Doc) LoadJpegImageFromFile ¶
LoadJpegImageFromFile loads an external JPEG image file.
func (*Doc) LoadJpegImageFromMem ¶
LoadJpegImageFromMem loads JPEG image from a buffer.
func (*Doc) LoadPngImageFromFile ¶
LoadPngImageFromFile loads an external PNG image file.
func (*Doc) LoadPngImageFromFile2 ¶
LoadPngImageFromFile2 loads a PNG image from the file
The image isn't actually loaded until it is used in the document LoadPngImageFromFile2 loads an external PNG image file.
func (*Doc) LoadPngImageFromMem ¶
LoadPngImageFromMem loads PNG image from a buffer.
func (*Doc) LoadTTFontFromFile ¶
LoadTTFontFromFile loads a TrueType font from an external file and register it to a document object. (See "Fonts and Encodings")
func (*Doc) LoadTTFontFromFile2 ¶
LoadTTFontFromFile2 loads a TrueType font from an TrueType collection file and register it to a document object. (See "Fonts and Encodings")
func (*Doc) LoadType1FontFromFile ¶
LoadType1FontFromFile loads a Type1 font from an external file and registers it in the document object. (See "Fonts and Encodings")
func (*Doc) ResetError ¶
func (pdf *Doc) ResetError()
ResetError resets error
The function is used to reset error before continue if panicIfError parameter is not set in New function
func (*Doc) SetCompressionMode ¶
SetCompressionMode sets compression mode
The mode may be any Comp* value except CompMask SetCompressionMode set the mode of compression.
func (*Doc) SetCurrentEncoder ¶
SetCurrentEncoder sets the current encoder for the document.
func (*Doc) SetEncryptionMode ¶
SetEncryptionMode set the encryption mode.
use EncryptR2 or EncryptR3 as mode
func (*Doc) SetInfoAttrDate ¶
SetInfoAttrDate sets data/time attribute value
Attribute code may be InfoCreationDate or InfoModDate
func (*Doc) SetInfoAttrString ¶
SetInfoAttrString sets string attribute value
The attr value may be any of Info* except those with DATE
func (*Doc) SetOpenAction ¶
func (pdf *Doc) SetOpenAction(openAction Destination)
SetOpenAction set the first page to appear when a document is opened.
func (*Doc) SetPageLayout ¶
SetPageLayout sets how the page should be displayed. If this attribute is not set, the setting of the viewer application is used.
Use PageLayout as layout value
func (*Doc) SetPageMode ¶
SetPageMode sets how the document should be displayed.
func (*Doc) SetPagesConfiguration ¶
SetPagesConfiguration sets count of pages per printed page
func (*Doc) SetPassword ¶
SetPassword sets a password for the document.
func (*Doc) SetPermission ¶
SetPermission sets permission
permission may be combination of Enable* flags SetPermission set the permission flags for the document.
func (*Doc) UseCNSEncodings ¶
func (pdf *Doc) UseCNSEncodings()
UseCNSEncodings enables simplified Chinese encodings. After HPDF_UseCNSEncodings() is invoked, an application can use the following simplified Chinese encodings.
func (*Doc) UseCNSFonts ¶
func (pdf *Doc) UseCNSFonts()
UseCNSFonts enables simplified Chinese fonts. After HPDFUseCNSFonts() is invoked, an application can use the following simplified Chinese fonts.
func (*Doc) UseCNTEncodings ¶
func (pdf *Doc) UseCNTEncodings()
UseCNTEncodings enables traditional Chinese encodings. After HPDF_UseCNTEncodings() is invoked, an application can use the following traditional Chinese encodings.
func (*Doc) UseCNTFonts ¶
func (pdf *Doc) UseCNTFonts()
UseCNTFonts enables traditional Chinese fonts. After HPDFUseCNTFonts() is invoked, an application can use the following traditional Chinese fonts.
func (*Doc) UseJPEncodings ¶
func (pdf *Doc) UseJPEncodings()
UseJPEncodings enables Japanese encodings. After HPDF_UseJPEncodings() is invoked, an application can use the following Japanese encodings.
func (*Doc) UseJPFonts ¶
func (pdf *Doc) UseJPFonts()
UseJPFonts enables Japanese fonts. After HPDFUseJPFonts() is invoked, an application can use the following Japanese fonts.
func (*Doc) UseKREncodings ¶
func (pdf *Doc) UseKREncodings()
UseKREncodings enables Korean encodings. After HPDF_UseKREncodings() is invoked, an application can use the following Korean encodings.
func (*Doc) UseKRFonts ¶
func (pdf *Doc) UseKRFonts()
UseKRFonts enables Korean fonts. After HPDFUseKRFonts() is invoked, an application can use the following Korean fonts.
func (*Doc) UseUTFEncodings ¶
func (pdf *Doc) UseUTFEncodings()
UseUTFEncodings enables UTF-8 encodings. After HPDF_UseUTFEncodings() is invoked, an application can include UTF-8 encoded Unicode text (up to 3-byte UTF-8 sequences only). An application can use the following Unicode encodings (but only with TrueType fonts):
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder is text encoder used by libharu
func (*Encoder) GetByteType ¶
GetByteType returns the type of byte in the text at position index.
func (*Encoder) GetUnicode ¶
GetUnicode converts a specified character code to unicode.
func (*Encoder) GetWritingMode ¶
GetWritingMode returns the writing mode for the encoding object.
Returns WritingMode* value
type ExtGState ¶
type ExtGState struct {
// contains filtered or unexported fields
}
ExtGState struct
func (*ExtGState) SetAlphaFill ¶
SetAlphaFill sets alpha fill
func (*ExtGState) SetAlphaStroke ¶
SetAlphaStroke sets alpha stroke
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
Font struct keeps font reference
func (*Font) GetCapHeight ¶
GetCapHeight gets the distance from the baseline of uppercase letters.
func (*Font) GetDescent ¶
GetDescent gets the vertical descent of the font.
func (*Font) GetEncodingName ¶
GetEncodingName gets the encoding name of the font.
func (*Font) GetFontName ¶
GetFontName gets the name of the font.
func (*Font) GetUnicodeWidth ¶
GetUnicodeWidth gets the width of a Unicode character in a specific font.
func (*Font) GetXHeight ¶
GetXHeight gets the distance from the baseline of lowercase letters.
func (*Font) MeasureText ¶
func (font *Font) MeasureText(text string, len uint, width float32, fontsize float32, charspace float32, wordspace float32, wordwrap bool) (uint, float32)
MeasureText calculates the byte length which can be included within the specified width.
func (*Font) MeasureTextEncoded ¶
func (font *Font) MeasureTextEncoded(text []byte, len uint, width float32, fontsize float32, charspace float32, wordspace float32, wordwrap bool) (uint, float32)
MeasureTextEncoded calculates the byte length which can be included within the specified width.
func (*Font) MeasureTextEncoded1 ¶
func (font *Font) MeasureTextEncoded1(text string, encoding string, width float32, fontsize float32, charspace float32, wordspace float32, wordwrap bool) (uint, float32, error)
MeasureTextEncoded1 calculates the byte length which can be included within the specified width.
func (*Font) TextWidth ¶
TextWidth gets total width of the text, number of characters, and number of words.
func (*Font) TextWidthEncoded ¶
TextWidthEncoded gets total width of the text, number of characters, and number of words.
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image struct keeps data about an image
func (*Image) BitsPerComponent ¶
BitsPerComponent returns bits per pixel of the image
func (*Image) GetColorSpace ¶
GetColorSpace gets color space of the image
func (*Image) SetColorMask ¶
SetColorMask sets mask using color components
func (*Image) SetImageMask ¶
SetImageMask set image mask using another image as a mask
type JavaScript ¶
type JavaScript struct {
// contains filtered or unexported fields
}
JavaScript structure keeps information about a JavaScript
type MMgr ¶
type MMgr struct {
// contains filtered or unexported fields
}
MMgr struct contains the reference to media manager
type Outline ¶
type Outline struct {
// contains filtered or unexported fields
}
Outline struct keeps outline
func (*Outline) SetDestination ¶
func (outline *Outline) SetDestination(dst Destination)
SetDestination sets outline destination
type OutputIntent ¶
type OutputIntent struct {
// contains filtered or unexported fields
}
OutputIntent struct
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page struct keeps reference to a page of a document
func (*Page) Arc ¶
Arc appends a circle arc to the current path. Angles are given in degrees, with 0 degrees being vertical, upward, from the (x,y) position.
func (*Page) BeginText ¶
func (page *Page) BeginText()
BeginText begins a text object and sets the text position to (0, 0).
func (*Page) Clip ¶
func (page *Page) Clip()
Clip modifies the current clipping path by intersecting it with the current path using the even-odd rule. The clipping path is only modified after the succeeding painting operator. To avoid painting the current path, use the function HPDF_Page_EndPath().
func (*Page) ClosePath ¶
func (page *Page) ClosePath()
ClosePath appends a straight line from the current point to the start point of sub path.
func (*Page) ClosePathEofillStroke ¶
func (page *Page) ClosePathEofillStroke()
ClosePathEofillStroke closes the current path, fills the current path using the even-odd rule, then paints the path.
func (*Page) ClosePathFillStroke ¶
func (page *Page) ClosePathFillStroke()
ClosePathFillStroke closes the current path, fills the current path using the nonzero winding number rule, then paints the path.
func (*Page) ClosePathStroke ¶
func (page *Page) ClosePathStroke()
ClosePathStroke closes the current path.
func (*Page) Concat ¶
Concat concatenates the page's current transformation matrix and specified matrix.
func (*Page) Create3DAnnot ¶
Create3DAnnot creates an annotation that contains a 3D object
func (*Page) CreateCircleAnnot ¶
func (page *Page) CreateCircleAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateCircleAnnot creates circle annotation
func (*Page) CreateDestination ¶
func (page *Page) CreateDestination() Destination
CreateDestination creates a new destination object for the page.
func (*Page) CreateFreeTextAnnot ¶
func (page *Page) CreateFreeTextAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateFreeTextAnnot creates free text annotation
func (*Page) CreateHighlightAnnot ¶
func (page *Page) CreateHighlightAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateHighlightAnnot creates highlighted annotation
func (*Page) CreateLineAnnot ¶
func (page *Page) CreateLineAnnot(text string, encoder Encoder) Annotation
CreateLineAnnot creates line annotation
func (*Page) CreateLinkAnnot ¶
func (page *Page) CreateLinkAnnot(rect Rect, dst Destination) Annotation
CreateLinkAnnot creates a new link annotation object for the page.
func (*Page) CreatePopupAnnot ¶
func (page *Page) CreatePopupAnnot(rect Rect, parent Annotation) Annotation
CreatePopupAnnot creates a popup annotation
func (*Page) CreateProjectionAnnot ¶
func (page *Page) CreateProjectionAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateProjectionAnnot creates projection annotation
func (*Page) CreateSquareAnnot ¶
func (page *Page) CreateSquareAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateSquareAnnot creates square annotation
func (*Page) CreateSquigglyAnnot ¶
func (page *Page) CreateSquigglyAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateSquigglyAnnot creates squiggly annotation
func (*Page) CreateStampAnnot ¶
CreateStampAnnot creates stamp annotation.
Use StampAnnot* values to specify the type of the stamp
func (*Page) CreateStrikeOutAnnot ¶
func (page *Page) CreateStrikeOutAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateStrikeOutAnnot creates stoke out annotation
func (*Page) CreateTextAnnot ¶
func (page *Page) CreateTextAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateTextAnnot creates a new text annotation object for the page.
func (*Page) CreateTextMarkupAnnot ¶
func (page *Page) CreateTextMarkupAnnot(rect Rect, text string, encoder Encoder, subType int) Annotation
CreateTextMarkupAnnot creates markup annotation
func (*Page) CreateURILinkAnnot ¶
func (page *Page) CreateURILinkAnnot(rect Rect, uri string) Annotation
CreateURILinkAnnot creates a new web link annotation object for the page.
func (*Page) CreateUnderlineAnnot ¶
func (page *Page) CreateUnderlineAnnot(rect Rect, text string, encoder Encoder) Annotation
CreateUnderlineAnnot creates underlined annotation
func (*Page) CreateWidgetAnnot ¶
func (page *Page) CreateWidgetAnnot(rect Rect) Annotation
CreateWidgetAnnot creates widget-based annotation
func (*Page) CurveTo ¶
CurveTo appends a Bezier curve to the current path using the control points (x1, y1) and (x2, y2) and (x3, y3), then sets the current point to (x3, y3).
func (*Page) CurveTo2 ¶
CurveTo2 appends a Bezier curve to the current path using the current point and (x2, y2) and (x3, y3) as control points. Then, the current point is set to (x3, y3).
func (*Page) CurveTo3 ¶
CurveTo3 appends a Bezier curve to the current path using two specified points.
func (*Page) EndPath ¶
func (page *Page) EndPath()
EndPath ends the path object without filling or painting.
func (*Page) Eofill ¶
func (page *Page) Eofill()
Eofill fills the current path using the even-odd rule.
func (*Page) EofillStroke ¶
func (page *Page) EofillStroke()
EofillStroke fills the current path using the even-odd rule, then paints the path.
func (*Page) Fill ¶
func (page *Page) Fill()
Fill fills the current path using the nonzero winding number rule.
func (*Page) FillStroke ¶
func (page *Page) FillStroke()
FillStroke fills the current path using the nonzero winding number rule, then paints the path.
func (*Page) GRestore ¶
func (page *Page) GRestore()
GRestore restore the graphics state which is saved by HPDF_Page_GSave().
func (*Page) GSave ¶
func (page *Page) GSave()
GSave saves the page's current graphics parameter to the stack. An application can invoke HPDF_Page_GSave() up to 28 (???) and can restore the saved parameter by invoking HPDF_Page_GRestore().
func (*Page) GetCMYKFill ¶
GetCMYKFill returns the current value of the page's filling color. HPDF_Page_GetCMYKFill() is valid only when the page's filling color space is HPDF_CS_DEVICE_CMYK.
func (*Page) GetCMYKStroke ¶
GetCMYKStroke returns the current value of the page's stroking color. HPDF_Get_CMYKStroke() is valid only when the page's stroking color space is HPDF_CS_DEVICE_CMYK.
func (*Page) GetCharSpace ¶
GetCharSpace gets the current value of the page's character spacing.
func (*Page) GetCurrentFont ¶
GetCurrentFont gets the handle of the page's current font.
func (*Page) GetCurrentFontSize ¶
GetCurrentFontSize gets the size of the page's current font.
func (*Page) GetCurrentPos ¶
GetCurrentPos gets the current position for path painting.
func (*Page) GetCurrentTextPos ¶
GetCurrentTextPos gets the current position for text showing.
func (*Page) GetFillingColorSpace ¶
GetFillingColorSpace returns the current value of the page's stroking color space.
The methgod return ColorSpace* value
func (*Page) GetGStateDepth ¶
GetGStateDepth returns the number of the page's graphics state stack.
func (*Page) GetGrayFill ¶
GetGrayFill returns the current value of the page's filling color. HPDF_Page_GetGrayFill() is valid only when the page's stroking color space is HPDF_CS_DEVICE_GRAY.
func (*Page) GetGrayStroke ¶
GetGrayStroke returns the current value of the page's stroking color. HPDF_Page_GetGrayStroke() is valid only when the page's stroking color space is HPDF_CS_DEVICE_GRAY.
func (*Page) GetHorizontalScalling ¶
GetHorizontalScalling returns the current value of the page's horizontal scalling for text showing.
func (*Page) GetLineCap ¶
GetLineCap gets the current line cap style of the page.
the method return Buttend, RoundEnd, ProjectingSquareEnd
func (*Page) GetLineJoin ¶
GetLineJoin gets the current line join style of the page.
the method return MiterJoin, RoundJoin or BevelJoin
func (*Page) GetLineWidth ¶
GetLineWidth gets the current line width of the page.
func (*Page) GetMiterLimit ¶
GetMiterLimit gets the current value of the page's miter limit.
func (*Page) GetPageMMgr ¶
GetPageMMgr returns media manager object
func (*Page) GetRGBFill ¶
GetRGBFill returns the current value of the page's filling color. HPDF_Page_GetRGBFill() is valid only when the page's filling color space is HPDF_CS_DEVICE_RGB.
func (*Page) GetRGBStroke ¶
GetRGBStroke returns the current value of the page's stroking color. HPDF_Page_GetRGBStroke() is valid only when the page's stroking color space is HPDF_CS_DEVICE_RGB.
func (*Page) GetStrokingColorSpace ¶
GetStrokingColorSpace returns the current value of the page's stroking color space.
The methgod return ColorSpace* value
func (*Page) GetTextLeading ¶
GetTextLeading returns the current value of the page's line spacing.
func (*Page) GetTextMatrix ¶
func (page *Page) GetTextMatrix() TransMatrix
GetTextMatrix gets the current text transformation matrix of the page.
func (*Page) GetTextRaise ¶
GetTextRaise returns text raise
func (*Page) GetTextRenderingMode ¶
GetTextRenderingMode returns the current value of the page's text rendering mode.
The method returns TextRender* value
func (*Page) GetTextRise ¶
GetTextRise returns the current value of the page's text rising.
func (*Page) GetTransMatrix ¶
func (page *Page) GetTransMatrix() TransMatrix
GetTransMatrix gets the current transformation matrix of the page.
func (*Page) GetWordSpace ¶
GetWordSpace returns the current value of the page's word spacing.
func (*Page) MeasureText ¶
MeasureText calculates the byte length which can be included within the specified width.
func (*Page) MeasureText1 ¶
func (page *Page) MeasureText1(text string, encoding string, width float32, wordwrap bool) (uint, float32, error)
MeasureText1 measures the text dimensions
func (*Page) MeasureText2 ¶
MeasureText2 measures the text size
func (*Page) MoveTextPos ¶
MoveTextPos changes the current text position, using the specified offset values. If the current text position is (x1, y1), the new text position will be (x1 + x, y1 + y).
func (*Page) MoveTextPos2 ¶
MoveTextPos2 changes the current text position, using the specified offset values. If the current text position is (x1, y1), the new text position will be (x1 + x, y1 + y).
func (*Page) MoveTo ¶
MoveTo starts a new subpath and move the current point for drawing path, HPDF_Page_MoveTo() sets the start point for the path to the point (x, y).
func (*Page) MoveToNextLine ¶
func (page *Page) MoveToNextLine()
MoveToNextLine moves current position for the text showing depending on current text showing point and text leading. The new position is calculated with current text transition matrix.
func (*Page) SetCMYKFill ¶
SetCMYKFill sets the filling color.
func (*Page) SetCMYKStroke ¶
SetCMYKStroke sets the stroking color.
func (*Page) SetCharSpace ¶
SetCharSpace sets the character spacing for text.
func (*Page) SetExtGState ¶
SetExtGState applies the graphics state to the page.
func (*Page) SetFontAndSize ¶
SetFontAndSize sets the type of font and size leading.
func (*Page) SetGrayFill ¶
SetGrayFill sets the filling color.
func (*Page) SetGrayStroke ¶
SetGrayStroke sets the stroking color.
func (*Page) SetHorizontalScalling ¶
SetHorizontalScalling sets the horizontal scalling (scaling) for text showing.
func (*Page) SetLineCap ¶
SetLineCap sets the shape to be used at the ends of lines.
Use ButtEnd, RoundEnd, ProjectingSquareEnd as cap style
func (*Page) SetLineJoin ¶
SetLineJoin Sets the line join style in the page.
Use MiterJoin, RoundJoin or BevelJoin as join style
func (*Page) SetLineWidth ¶
SetLineWidth sets the width of the line used to stroke a path.
func (*Page) SetMiterLimit ¶
SetMiterLimit sets miter limit
func (*Page) SetRGBFill ¶
SetRGBFill sets the filling color.
func (*Page) SetRGBStroke ¶
SetRGBStroke sets the stroking color.
func (*Page) SetSize ¶
SetSize changes the size and direction of a page to a predefined size.
Use PageSize* as page size. Use PagePortrait or PageLandscape as orientation
func (*Page) SetSlideShow ¶
SetSlideShow configures the setting for slide transition of the page.
use Ts* as slideShowType
func (*Page) SetTextLeading ¶
SetTextLeading sets the text leading (line spacing) for text showing.
func (*Page) SetTextMatrix ¶
func (page *Page) SetTextMatrix(m TransMatrix)
SetTextMatrix sets text transformation matrix
func (*Page) SetTextRaise ¶
SetTextRaise sets the text raise
func (*Page) SetTextRenderingMode ¶
SetTextRenderingMode sets the text rendering mode.
Use TextRender* as a mode
func (*Page) SetTextRise ¶
SetTextRise moves the text position in vertical direction by
func (*Page) SetWordSpace ¶
SetWordSpace sets the word spacing for text.
func (*Page) ShowTextNextLine ¶
ShowTextNextLine moves the current text position to the start of the next line, then prints the text at the current position on the page.
func (*Page) ShowTextNextLine1 ¶
ShowTextNextLine1 shows text at the next line
func (*Page) ShowTextNextLine2 ¶
ShowTextNextLine2 shows the text at the next line
func (*Page) ShowTextNextLineEx ¶
ShowTextNextLineEx moves the current text position to the start of the next line; then sets word spacing and character spacing; finally prints the text at the current position on the page.
func (*Page) ShowTextNextLineEx1 ¶
func (page *Page) ShowTextNextLineEx1(wordSpace float32, charSpace float32, text string, encoding string) error
ShowTextNextLineEx1 shows text at the next line
func (*Page) ShowTextNextLineEx2 ¶
ShowTextNextLineEx2 shows the text at the next line
func (*Page) TextRect ¶
func (page *Page) TextRect(left float32, top float32, right float32, bottom float32, text string, align int) uint32
TextRect draw text in the specified rectangle
Use TextAlign* as a alignment
func (*Page) TextWidth ¶
TextWidth gets the width of the text in current fontsize, character spacing and word spacing.
func (*Page) TextWidth1 ¶
TextWidth1 measures the width of the text
func (*Page) TextWidth2 ¶
TextWidth2 measures the text width
type Point3D ¶
type Point3D struct {
X, Y, Z float32
}
Point3D struct is used to store 3D point coordinates
type RGBColor ¶
type RGBColor struct {
R, G, B float32
}
RGBColor keeps a color as RGB quad.
The components are expressed as value between 0 and 1.
type Rect ¶
type Rect struct {
Top, Bottom, Left, Right float32
}
Rect struct is used to store a rectangle coordinates
type TextWidth ¶
type TextWidth struct {
NumberOfCharacters, NumberOfWords, Width, NumSpace uint
}
TextWidth struct keeps complex results returned by text measurement methods
type TransMatrix ¶
type TransMatrix struct {
A, B, C, D, X, Y float32
}
TransMatrix stores information about at transformation matrix