goharu

package module
v0.0.0-...-e08d71e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: LGPL-3.0 Imports: 5 Imported by: 0

README

What is GoHaru?

GoHaru is another Go interop module for libharu PDF generation library (http://libharu.org/)

What Makes it Different from others?

  1. The package includes prebuild static libraries for 32 and 64 bit Windows, 32 and 64 ARM, 64 bit Intel Linux, and 64 bit MacOS.

Yes, we aware that Go ideology wants you to compile the whole libharu from sources, however from our expirience, a correct cross platform build of these libraries appears to be challenging for an ordinary developer and is needlessly resource consuming for a reasonable project maintenance schedule.

So, we included the cross-platform static libraries, made from the same sources as the binaries used by our own Gehtsoft.PDFFlow library.

These binaries also contains all recent fixes we made in haru, that may be yet to be incorporated into original libharu code.

The binaries are tested on Windows 7, Windows 10, Cent OS 7, Ubuntu 18.04, OSX 10.14.

If you still want to accept the challenge of building haru, please feel free to take source code and building procedures here

https://github.com/gehtsoft-usa/libharu (for our fixed version)

or

https://github.com/libharu/libharu (for original libharu)

  1. We also ported demos and provided function descriptions for godoc

Use https://godoc.org/github.com/gehtsoft-usa/goharu to see types and functions documentation.

  1. To run demo go to demo subfolder of the folder where the package is installed and run

go run demo.go help

to get the list of demos, then run samples, e.g.

go run demo.go png fonts

PDF files are created in out subfolder of demo

How to Build the library?

  1. In order to succesfully use the library make sure that:
  1. Get package using

go get github.com/gehtsoft-usa/goharu

Documentation

Index

Constants

View Source
const Annot3d int = 13

Annot3d is value that indicates annotation type

View Source
const AnnotCircle int = 6

AnnotCircle is value that indicates annotation type

View Source
const AnnotDownAppearance int = 3

AnnotDownAppearance is highlight mode:

View Source
const AnnotFileAttachment int = 11

AnnotFileAttachment is value that indicates annotation type

View Source
const AnnotFreeText int = 3

AnnotFreeText is value that indicates annotation type

View Source
const AnnotHightlight int = 8

AnnotHightlight is value that indicates annotation type

View Source
const AnnotIconComment int = 0

AnnotIconComment is icon type for icon annotation

View Source
const AnnotIconHelp int = 3

AnnotIconHelp is icon type for icon annotation

View Source
const AnnotIconInsert int = 6

AnnotIconInsert is icon type for icon annotation

View Source
const AnnotIconKey int = 1

AnnotIconKey is icon type for icon annotation

View Source
const AnnotIconNewParagraph int = 4

AnnotIconNewParagraph is icon type for icon annotation

View Source
const AnnotIconNote int = 2

AnnotIconNote is icon type for icon annotation

View Source
const AnnotIconParagraph int = 5

AnnotIconParagraph is icon type for icon annotation

View Source
const AnnotInk int = 10

AnnotInk is value that indicates annotation type

View Source
const AnnotIntentFreetextCallout int = 0

AnnotIntentFreetextCallout is markup annotation intent

View Source
const AnnotIntentFreetexttypewriter int = 1

AnnotIntentFreetexttypewriter is markup annotation intent

View Source
const AnnotIntentLinearrow int = 2

AnnotIntentLinearrow is markup annotation intent

View Source
const AnnotIntentLinedimension int = 3

AnnotIntentLinedimension is markup annotation intent

View Source
const AnnotIntentPolygoncloud int = 4

AnnotIntentPolygoncloud is markup annotation intent

View Source
const AnnotIntentPolygondimension int = 6

AnnotIntentPolygondimension is markup annotation intent

View Source
const AnnotIntentPolylinedimension int = 5

AnnotIntentPolylinedimension is markup annotation intent

View Source
const AnnotInvertBorder int = 2

AnnotInvertBorder is highlight mode: invert border

View Source
const AnnotInvertBox int = 1

AnnotInvertBox is highlight mode: invert content

View Source
const AnnotLine int = 15

AnnotLine is value that indicates annotation type

View Source
const AnnotLink int = 1

AnnotLink is value that indicates annotation type

View Source
const AnnotNoHightlight int = 0

AnnotNoHightlight is highlight mode: no highlight

View Source
const AnnotPopup int = 12

AnnotPopup is value that indicates annotation type

View Source
const AnnotProjection int = 16

AnnotProjection is value that indicates annotation type

View Source
const AnnotSound int = 2

AnnotSound is value that indicates annotation type

View Source
const AnnotSquare int = 5

AnnotSquare is value that indicates annotation type

View Source
const AnnotSquiggly int = 14

AnnotSquiggly is value that indicates annotation type

View Source
const AnnotStamp int = 4

AnnotStamp is value that indicates annotation type

View Source
const AnnotStrikeOut int = 7

AnnotStrikeOut is value that indicates annotation type

View Source
const AnnotTextNotes int = 0

AnnotTextNotes is value that indicates annotation type

View Source
const AnnotUnderline int = 9

AnnotUnderline is value that indicates annotation type

View Source
const AnnotWidget int = 17

AnnotWidget is value that indicates annotation type

View Source
const BevelJoin int = 2

BevelJoin is line join style

View Source
const BmColorBum int = 7

BmColorBum is blending mode constant

View Source
const BmColorDodge int = 6

BmColorDodge is blending mode constant

View Source
const BmDarken int = 4

BmDarken is blending mode constant

View Source
const BmDifference int = 10

BmDifference is blending mode constant

View Source
const BmExclushon int = 11

BmExclushon is blending mode constant

View Source
const BmHardLight int = 8

BmHardLight is blending mode constant

View Source
const BmLighten int = 5

BmLighten is blending mode constant

View Source
const BmMultiply int = 1

BmMultiply is blending mode constant

View Source
const BmNormal int = 0

BmNormal is blending mode constant

View Source
const BmOverlay int = 3

BmOverlay is blending mode constant

View Source
const BmScreen int = 2

BmScreen is blending mode constant

View Source
const BmSoftLight int = 9

BmSoftLight is blending mode constant

View Source
const BsBeveled int = 2

BsBeveled is a border style subtype

View Source
const BsDashed int = 1

BsDashed is a border style subtype

View Source
const BsDefWidth int = 1

BsDefWidth is default line width

View Source
const BsInset int = 3

BsInset is a border style subtype

View Source
const BsSolid int = 0

BsSolid is a border style subtype

View Source
const BsUnderlined int = 4

BsUnderlined is a border style subtype

View Source
const ButtEnd int = 0

ButtEnd is line end style

View Source
const CenterWindow int = 16

CenterWindow is a viewer preference value

View Source
const ColorSpaceCalGray int = 3

ColorSpaceCalGray is color space identifier

View Source
const ColorSpaceCalRgb int = 4

ColorSpaceCalRgb is color space identifier

View Source
const ColorSpaceDeviceCmyk int = 2

ColorSpaceDeviceCmyk is color space identifier

View Source
const ColorSpaceDeviceGray int = 0

ColorSpaceDeviceGray is color space identifier

View Source
const ColorSpaceDeviceN int = 8

ColorSpaceDeviceN is color space identifier

View Source
const ColorSpaceDeviceRgb int = 1

ColorSpaceDeviceRgb is color space identifier

View Source
const ColorSpaceIccBased int = 6

ColorSpaceIccBased is color space identifier

View Source
const ColorSpaceIndexed int = 9

ColorSpaceIndexed is color space identifier

View Source
const ColorSpaceLab int = 5

ColorSpaceLab is color space identifier

View Source
const ColorSpacePattern int = 10

ColorSpacePattern is color space identifier

View Source
const ColorSpaceSeparation int = 7

ColorSpaceSeparation is color space identifier

View Source
const CompAll int = 0x0F

CompAll is flag indicating that document should be saved with full compression

View Source
const CompImage int = 0x02

CompImage is flag indicating that document should be saved with images only compression

View Source
const CompMetadata int = 0x04

CompMetadata is flag indicating that document should be saved with metadata only compression

View Source
const CompNone int = 0x00

CompNone is flag indicating that document should be saved with no compression

View Source
const CompText int = 0x01

CompText is flag indicating that document should be saved with text only compression

View Source
const CountryAd string = "AD" /* ANDORRA */

CountryAd is country code for /* ANDORRA */

View Source
const CountryAe string = "AE" /* UNITED ARAB EMIRATES */

CountryAe is country code for /* UNITED ARAB EMIRATES */

View Source
const CountryAf string = "AF" /* AFGHANISTAN */

CountryAf is country code for /* AFGHANISTAN */

View Source
const CountryAg string = "AG" /* ANTIGUA AND BARBUDA */

CountryAg is country code for /* ANTIGUA AND BARBUDA */

View Source
const CountryAi string = "AI" /* ANGUILLA */

CountryAi is country code for /* ANGUILLA */

View Source
const CountryAl string = "AL" /* ALBANIA */

CountryAl is country code for /* ALBANIA */

View Source
const CountryAm string = "AM" /* ARMENIA */

CountryAm is country code for /* ARMENIA */

View Source
const CountryAn string = "AN" /* NETHERLANDS ANTILLES */

CountryAn is country code for /* NETHERLANDS ANTILLES */

View Source
const CountryAo string = "AO" /* ANGOLA */

CountryAo is country code for /* ANGOLA */

View Source
const CountryAq string = "AQ" /* ANTARCTICA */

CountryAq is country code for /* ANTARCTICA */

View Source
const CountryAr string = "AR" /* ARGENTINA */

CountryAr is country code for /* ARGENTINA */

View Source
const CountryAs string = "AS" /* AMERICAN SAMOA */

CountryAs is country code for /* AMERICAN SAMOA */

View Source
const CountryAt string = "AT" /* AUSTRIA */

CountryAt is country code for /* AUSTRIA */

View Source
const CountryAu string = "AU" /* AUSTRALIA */

CountryAu is country code for /* AUSTRALIA */

View Source
const CountryAw string = "AW" /* ARUBA */

CountryAw is country code for /* ARUBA */

View Source
const CountryAz string = "AZ" /* AZERBAIJAN */

CountryAz is country code for /* AZERBAIJAN */

View Source
const CountryBa string = "BA" /* BOSNIA AND HERZEGOVINA */

CountryBa is country code for /* BOSNIA AND HERZEGOVINA */

View Source
const CountryBb string = "BB" /* BARBADOS */

CountryBb is country code for /* BARBADOS */

View Source
const CountryBd string = "BD" /* BANGLADESH */

CountryBd is country code for /* BANGLADESH */

View Source
const CountryBe string = "BE" /* BELGIUM */

CountryBe is country code for /* BELGIUM */

View Source
const CountryBf string = "BF" /* BURKINA FASO */

CountryBf is country code for /* BURKINA FASO */

View Source
const CountryBg string = "BG" /* BULGARIA */

CountryBg is country code for /* BULGARIA */

View Source
const CountryBh string = "BH" /* BAHRAIN */

CountryBh is country code for /* BAHRAIN */

View Source
const CountryBi string = "BI" /* BURUNDI */

CountryBi is country code for /* BURUNDI */

View Source
const CountryBj string = "BJ" /* BENIN */

CountryBj is country code for /* BENIN */

View Source
const CountryBm string = "BM" /* BERMUDA */

CountryBm is country code for /* BERMUDA */

View Source
const CountryBn string = "BN" /* BRUNEI DARUSSALAM */

CountryBn is country code for /* BRUNEI DARUSSALAM */

View Source
const CountryBo string = "BO" /* BOLIVIA */

CountryBo is country code for /* BOLIVIA */

View Source
const CountryBr string = "BR" /* BRAZIL */

CountryBr is country code for /* BRAZIL */

View Source
const CountryBs string = "BS" /* BAHAMAS */

CountryBs is country code for /* BAHAMAS */

View Source
const CountryBt string = "BT" /* BHUTAN */

CountryBt is country code for /* BHUTAN */

View Source
const CountryBv string = "BV" /* BOUVET ISLAND */

CountryBv is country code for /* BOUVET ISLAND */

View Source
const CountryBw string = "BW" /* BOTSWANA */

CountryBw is country code for /* BOTSWANA */

View Source
const CountryBy string = "BY" /* BELARUS */

CountryBy is country code for /* BELARUS */

View Source
const CountryBz string = "BZ" /* BELIZE */

CountryBz is country code for /* BELIZE */

View Source
const CountryCa string = "CA" /* CANADA */

CountryCa is country code for /* CANADA */

View Source
const CountryCc string = "CC" /* COCOS (KEELING) ISLANDS */

CountryCc is country code for /* COCOS (KEELING) ISLANDS */

View Source
const CountryCf string = "CF" /* CENTRAL AFRICAN REPUBLIC */

CountryCf is country code for /* CENTRAL AFRICAN REPUBLIC */

View Source
const CountryCg string = "CG" /* CONGO */

CountryCg is country code for /* CONGO */

View Source
const CountryCh string = "CH" /* SWITZERLAND */

CountryCh is country code for /* SWITZERLAND */

View Source
const CountryCi string = "CI" /* COTE D'IVOIRE */

CountryCi is country code for /* COTE D'IVOIRE */

View Source
const CountryCk string = "CK" /* COOK ISLANDS */

CountryCk is country code for /* COOK ISLANDS */

View Source
const CountryCl string = "CL" /* CHILE */

CountryCl is country code for /* CHILE */

View Source
const CountryCm string = "CM" /* CAMEROON */

CountryCm is country code for /* CAMEROON */

View Source
const CountryCn string = "CN" /* CHINA */

CountryCn is country code for /* CHINA */

View Source
const CountryCo string = "CO" /* COLOMBIA */

CountryCo is country code for /* COLOMBIA */

View Source
const CountryCr string = "CR" /* COSTA RICA */

CountryCr is country code for /* COSTA RICA */

View Source
const CountryCu string = "CU" /* CUBA */

CountryCu is country code for /* CUBA */

View Source
const CountryCv string = "CV" /* CAPE VERDE */

CountryCv is country code for /* CAPE VERDE */

View Source
const CountryCx string = "CX" /* CHRISTMAS ISLAND */

CountryCx is country code for /* CHRISTMAS ISLAND */

View Source
const CountryCy string = "CY" /* CYPRUS */

CountryCy is country code for /* CYPRUS */

View Source
const CountryCz string = "CZ" /* CZECH REPUBLIC */

CountryCz is country code for /* CZECH REPUBLIC */

View Source
const CountryDe string = "DE" /* GERMANY */

CountryDe is country code for /* GERMANY */

View Source
const CountryDj string = "DJ" /* DJIBOUTI */

CountryDj is country code for /* DJIBOUTI */

View Source
const CountryDk string = "DK" /* DENMARK */

CountryDk is country code for /* DENMARK */

View Source
const CountryDm string = "DM" /* DOMINICA */

CountryDm is country code for /* DOMINICA */

View Source
const CountryDo string = "DO" /* DOMINICAN REPUBLIC */

CountryDo is country code for /* DOMINICAN REPUBLIC */

View Source
const CountryDz string = "DZ" /* ALGERIA */

CountryDz is country code for /* ALGERIA */

View Source
const CountryEc string = "EC" /* ECUADOR */

CountryEc is country code for /* ECUADOR */

View Source
const CountryEe string = "EE" /* ESTONIA */

CountryEe is country code for /* ESTONIA */

View Source
const CountryEg string = "EG" /* EGYPT */

CountryEg is country code for /* EGYPT */

View Source
const CountryEh string = "EH" /* WESTERN SAHARA */

CountryEh is country code for /* WESTERN SAHARA */

View Source
const CountryEr string = "ER" /* ERITREA */

CountryEr is country code for /* ERITREA */

View Source
const CountryEs string = "ES" /* SPAIN */

CountryEs is country code for /* SPAIN */

View Source
const CountryEt string = "ET" /* ETHIOPIA */

CountryEt is country code for /* ETHIOPIA */

View Source
const CountryFi string = "FI" /* FINLAND */

CountryFi is country code for /* FINLAND */

View Source
const CountryFj string = "FJ" /* FIJI */

CountryFj is country code for /* FIJI */

View Source
const CountryFk string = "FK" /* FALKLAND ISLANDS (MALVINAS) */

CountryFk is country code for /* FALKLAND ISLANDS (MALVINAS) */

View Source
const CountryFm string = "FM" /* MICRONESIA, FEDERATED STATES OF */

CountryFm is country code for /* MICRONESIA, FEDERATED STATES OF */

View Source
const CountryFo string = "FO" /* FAROE ISLANDS */

CountryFo is country code for /* FAROE ISLANDS */

View Source
const CountryFr string = "FR" /* FRANCE */

CountryFr is country code for /* FRANCE */

View Source
const CountryFx string = "FX" /* FRANCE, METROPOLITAN */

CountryFx is country code for /* FRANCE, METROPOLITAN */

View Source
const CountryGa string = "GA" /* GABON */

CountryGa is country code for /* GABON */

View Source
const CountryGb string = "GB" /* UNITED KINGDOM */

CountryGb is country code for /* UNITED KINGDOM */

View Source
const CountryGd string = "GD" /* GRENADA */

CountryGd is country code for /* GRENADA */

View Source
const CountryGe string = "GE" /* GEORGIA */

CountryGe is country code for /* GEORGIA */

View Source
const CountryGf string = "GF" /* FRENCH GUIANA */

CountryGf is country code for /* FRENCH GUIANA */

View Source
const CountryGh string = "GH" /* GHANA */

CountryGh is country code for /* GHANA */

View Source
const CountryGi string = "GI" /* GIBRALTAR */

CountryGi is country code for /* GIBRALTAR */

View Source
const CountryGl string = "GL" /* GREENLAND */

CountryGl is country code for /* GREENLAND */

View Source
const CountryGm string = "GM" /* GAMBIA */

CountryGm is country code for /* GAMBIA */

View Source
const CountryGn string = "GN" /* GUINEA */

CountryGn is country code for /* GUINEA */

View Source
const CountryGp string = "GP" /* GUADELOUPE */

CountryGp is country code for /* GUADELOUPE */

View Source
const CountryGq string = "GQ" /* EQUATORIAL GUINEA */

CountryGq is country code for /* EQUATORIAL GUINEA */

View Source
const CountryGr string = "GR" /* GREECE */

CountryGr is country code for /* GREECE */

View Source
const CountryGt string = "GT" /* GUATEMALA */

CountryGt is country code for /* GUATEMALA */

View Source
const CountryGu string = "GU" /* GUAM */

CountryGu is country code for /* GUAM */

View Source
const CountryGw string = "GW" /* GUINEA-BISSAU */

CountryGw is country code for /* GUINEA-BISSAU */

View Source
const CountryGy string = "GY" /* GUYANA */

CountryGy is country code for /* GUYANA */

View Source
const CountryHk string = "HK" /* HONG KONG */

CountryHk is country code for /* HONG KONG */

View Source
const CountryHm string = "HM" /* HEARD AND MC DONALD ISLANDS */

CountryHm is country code for /* HEARD AND MC DONALD ISLANDS */

View Source
const CountryHn string = "HN" /* HONDURAS */

CountryHn is country code for /* HONDURAS */

View Source
const CountryHr string = "HR" /* CROATIA (local name: Hrvatska) */

CountryHr is country code for /* CROATIA (local name: Hrvatska) */

View Source
const CountryHt string = "HT" /* HAITI */

CountryHt is country code for /* HAITI */

View Source
const CountryHu string = "HU" /* HUNGARY */

CountryHu is country code for /* HUNGARY */

View Source
const CountryIe string = "IE" /* IRELAND */

CountryIe is country code for /* IRELAND */

View Source
const CountryIl string = "IL" /* ISRAEL */

CountryIl is country code for /* ISRAEL */

View Source
const CountryIn string = "IN" /* INDIA */

CountryIn is country code for /* INDIA */

View Source
const CountryInd string = "ID" /* INDONESIA */

CountryInd is country code for /* INDONESIA */

View Source
const CountryIo string = "IO" /* BRITISH INDIAN OCEAN TERRITORY */

CountryIo is country code for /* BRITISH INDIAN OCEAN TERRITORY */

View Source
const CountryIq string = "IQ" /* IRAQ */

CountryIq is country code for /* IRAQ */

View Source
const CountryIr string = "IR" /* IRAN (ISLAMIC REPUBLIC OF) */

CountryIr is country code for /* IRAN (ISLAMIC REPUBLIC OF) */

View Source
const CountryIs string = "IS" /* ICELAND */

CountryIs is country code for /* ICELAND */

View Source
const CountryIt string = "IT" /* ITALY */

CountryIt is country code for /* ITALY */

View Source
const CountryJm string = "JM" /* JAMAICA */

CountryJm is country code for /* JAMAICA */

View Source
const CountryJo string = "JO" /* JORDAN */

CountryJo is country code for /* JORDAN */

View Source
const CountryJp string = "JP" /* JAPAN */

CountryJp is country code for /* JAPAN */

View Source
const CountryKe string = "KE" /* KENYA */

CountryKe is country code for /* KENYA */

View Source
const CountryKg string = "KG" /* KYRGYZSTAN */

CountryKg is country code for /* KYRGYZSTAN */

View Source
const CountryKh string = "KH" /* CAMBODIA */

CountryKh is country code for /* CAMBODIA */

View Source
const CountryKi string = "KI" /* KIRIBATI */

CountryKi is country code for /* KIRIBATI */

View Source
const CountryKm string = "KM" /* COMOROS */

CountryKm is country code for /* COMOROS */

View Source
const CountryKn string = "KN" /* SAINT KITTS AND NEVIS */

CountryKn is country code for /* SAINT KITTS AND NEVIS */

View Source
const CountryKp string = "KP" /* KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF */

CountryKp is country code for /* KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF */

View Source
const CountryKr string = "KR" /* KOREA, REPUBLIC OF */

CountryKr is country code for /* KOREA, REPUBLIC OF */

View Source
const CountryKw string = "KW" /* KUWAIT */

CountryKw is country code for /* KUWAIT */

View Source
const CountryKy string = "KY" /* CAYMAN ISLANDS */

CountryKy is country code for /* CAYMAN ISLANDS */

View Source
const CountryKz string = "KZ" /* KAZAKHSTAN */

CountryKz is country code for /* KAZAKHSTAN */

View Source
const CountryLa string = "LA" /* LAO PEOPLE'S DEMOCRATIC REPUBLIC */

CountryLa is country code for /* LAO PEOPLE'S DEMOCRATIC REPUBLIC */

View Source
const CountryLb string = "LB" /* LEBANON */

CountryLb is country code for /* LEBANON */

View Source
const CountryLc string = "LC" /* SAINT LUCIA */

CountryLc is country code for /* SAINT LUCIA */

View Source
const CountryLi string = "LI" /* LIECHTENSTEIN */

CountryLi is country code for /* LIECHTENSTEIN */

View Source
const CountryLk string = "LK" /* SRI LANKA */

CountryLk is country code for /* SRI LANKA */

View Source
const CountryLr string = "LR" /* LIBERIA */

CountryLr is country code for /* LIBERIA */

View Source
const CountryLs string = "LS" /* LESOTHO */

CountryLs is country code for /* LESOTHO */

View Source
const CountryLt string = "LT" /* LITHUANIA */

CountryLt is country code for /* LITHUANIA */

View Source
const CountryLu string = "LU" /* LUXEMBOURG */

CountryLu is country code for /* LUXEMBOURG */

View Source
const CountryLv string = "LV" /* LATVIA */

CountryLv is country code for /* LATVIA */

View Source
const CountryLy string = "LY" /* LIBYAN ARAB JAMAHIRIYA */

CountryLy is country code for /* LIBYAN ARAB JAMAHIRIYA */

View Source
const CountryMa string = "MA" /* MOROCCO */

CountryMa is country code for /* MOROCCO */

View Source
const CountryMc string = "MC" /* MONACO */

CountryMc is country code for /* MONACO */

View Source
const CountryMd string = "MD" /* MOLDOVA, REPUBLIC OF */

CountryMd is country code for /* MOLDOVA, REPUBLIC OF */

View Source
const CountryMg string = "MG" /* MADAGASCAR */

CountryMg is country code for /* MADAGASCAR */

View Source
const CountryMh string = "MH" /* MARSHALL ISLANDS */

CountryMh is country code for /* MARSHALL ISLANDS */

View Source
const CountryMk string = "MK" /* MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF */

CountryMk is country code for /* MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF */

View Source
const CountryMl string = "ML" /* MALI */

CountryMl is country code for /* MALI */

View Source
const CountryMm string = "MM" /* MYANMAR */

CountryMm is country code for /* MYANMAR */

View Source
const CountryMn string = "MN" /* MONGOLIA */

CountryMn is country code for /* MONGOLIA */

View Source
const CountryMo string = "MO" /* MACAU */

CountryMo is country code for /* MACAU */

View Source
const CountryMp string = "MP" /* NORTHERN MARIANA ISLANDS */

CountryMp is country code for /* NORTHERN MARIANA ISLANDS */

View Source
const CountryMq string = "MQ" /* MARTINIQUE */

CountryMq is country code for /* MARTINIQUE */

View Source
const CountryMr string = "MR" /* MAURITANIA */

CountryMr is country code for /* MAURITANIA */

View Source
const CountryMs string = "MS" /* MONTSERRAT */

CountryMs is country code for /* MONTSERRAT */

View Source
const CountryMt string = "MT" /* MALTA */

CountryMt is country code for /* MALTA */

View Source
const CountryMu string = "MU" /* MAURITIUS */

CountryMu is country code for /* MAURITIUS */

View Source
const CountryMv string = "MV" /* MALDIVES */

CountryMv is country code for /* MALDIVES */

View Source
const CountryMw string = "MW" /* MALAWI */

CountryMw is country code for /* MALAWI */

View Source
const CountryMx string = "MX" /* MEXICO */

CountryMx is country code for /* MEXICO */

View Source
const CountryMy string = "MY" /* MALAYSIA */

CountryMy is country code for /* MALAYSIA */

View Source
const CountryMz string = "MZ" /* MOZAMBIQUE */

CountryMz is country code for /* MOZAMBIQUE */

View Source
const CountryNa string = "NA" /* NAMIBIA */

CountryNa is country code for /* NAMIBIA */

View Source
const CountryNc string = "NC" /* NEW CALEDONIA */

CountryNc is country code for /* NEW CALEDONIA */

View Source
const CountryNe string = "NE" /* NIGER */

CountryNe is country code for /* NIGER */

View Source
const CountryNf string = "NF" /* NORFOLK ISLAND */

CountryNf is country code for /* NORFOLK ISLAND */

View Source
const CountryNg string = "NG" /* NIGERIA */

CountryNg is country code for /* NIGERIA */

View Source
const CountryNi string = "NI" /* NICARAGUA */

CountryNi is country code for /* NICARAGUA */

View Source
const CountryNl string = "NL" /* NETHERLANDS */

CountryNl is country code for /* NETHERLANDS */

View Source
const CountryNo string = "NO" /* NORWAY */

CountryNo is country code for /* NORWAY */

View Source
const CountryNp string = "NP" /* NEPAL */

CountryNp is country code for /* NEPAL */

View Source
const CountryNr string = "NR" /* NAURU */

CountryNr is country code for /* NAURU */

View Source
const CountryNu string = "NU" /* NIUE */

CountryNu is country code for /* NIUE */

View Source
const CountryNz string = "NZ" /* NEW ZEALAND */

CountryNz is country code for /* NEW ZEALAND */

View Source
const CountryOm string = "OM" /* OMAN */

CountryOm is country code for /* OMAN */

View Source
const CountryPa string = "PA" /* PANAMA */

CountryPa is country code for /* PANAMA */

View Source
const CountryPe string = "PE" /* PERU */

CountryPe is country code for /* PERU */

View Source
const CountryPf string = "PF" /* FRENCH POLYNESIA */

CountryPf is country code for /* FRENCH POLYNESIA */

View Source
const CountryPg string = "PG" /* PAPUA NEW GUINEA */

CountryPg is country code for /* PAPUA NEW GUINEA */

View Source
const CountryPh string = "PH" /* PHILIPPINES */

CountryPh is country code for /* PHILIPPINES */

View Source
const CountryPk string = "PK" /* PAKISTAN */

CountryPk is country code for /* PAKISTAN */

View Source
const CountryPl string = "PL" /* POLAND */

CountryPl is country code for /* POLAND */

View Source
const CountryPm string = "PM" /* ST. PIERRE AND MIQUELON */

CountryPm is country code for /* ST. PIERRE AND MIQUELON */

View Source
const CountryPn string = "PN" /* PITCAIRN */

CountryPn is country code for /* PITCAIRN */

View Source
const CountryPr string = "PR" /* PUERTO RICO */

CountryPr is country code for /* PUERTO RICO */

View Source
const CountryPt string = "PT" /* PORTUGAL */

CountryPt is country code for /* PORTUGAL */

View Source
const CountryPw string = "PW" /* PALAU */

CountryPw is country code for /* PALAU */

View Source
const CountryPy string = "PY" /* PARAGUAY */

CountryPy is country code for /* PARAGUAY */

View Source
const CountryQa string = "QA" /* QATAR */

CountryQa is country code for /* QATAR */

View Source
const CountryRe string = "RE" /* REUNION */

CountryRe is country code for /* REUNION */

View Source
const CountryRo string = "RO" /* ROMANIA */

CountryRo is country code for /* ROMANIA */

View Source
const CountryRu string = "RU" /* RUSSIAN FEDERATION */

CountryRu is country code for /* RUSSIAN FEDERATION */

View Source
const CountryRw string = "RW" /* RWANDA */

CountryRw is country code for /* RWANDA */

View Source
const CountrySa string = "SA" /* SAUDI ARABIA */

CountrySa is country code for /* SAUDI ARABIA */

View Source
const CountrySb string = "SB" /* SOLOMON ISLANDS */

CountrySb is country code for /* SOLOMON ISLANDS */

View Source
const CountrySc string = "SC" /* SEYCHELLES */

CountrySc is country code for /* SEYCHELLES */

View Source
const CountrySd string = "SD" /* SUDAN */

CountrySd is country code for /* SUDAN */

View Source
const CountrySe string = "SE" /* SWEDEN */

CountrySe is country code for /* SWEDEN */

View Source
const CountrySg string = "SG" /* SINGAPORE */

CountrySg is country code for /* SINGAPORE */

View Source
const CountrySh string = "SH" /* ST. HELENA */

CountrySh is country code for /* ST. HELENA */

View Source
const CountrySi string = "SI" /* SLOVENIA */

CountrySi is country code for /* SLOVENIA */

View Source
const CountrySj string = "SJ" /* SVALBARD AND JAN MAYEN ISLANDS */

CountrySj is country code for /* SVALBARD AND JAN MAYEN ISLANDS */

View Source
const CountrySk string = "SK" /* SLOVAKIA (Slovak Republic) */

CountrySk is country code for /* SLOVAKIA (Slovak Republic) */

View Source
const CountrySl string = "SL" /* SIERRA LEONE */

CountrySl is country code for /* SIERRA LEONE */

View Source
const CountrySm string = "SM" /* SAN MARINO */

CountrySm is country code for /* SAN MARINO */

View Source
const CountrySn string = "SN" /* SENEGAL */

CountrySn is country code for /* SENEGAL */

View Source
const CountrySo string = "SO" /* SOMALIA */

CountrySo is country code for /* SOMALIA */

View Source
const CountrySr string = "SR" /* SURINAME */

CountrySr is country code for /* SURINAME */

View Source
const CountrySt string = "ST" /* SAO TOME AND PRINCIPE */

CountrySt is country code for /* SAO TOME AND PRINCIPE */

View Source
const CountrySv string = "SV" /* EL SALVADOR */

CountrySv is country code for /* EL SALVADOR */

View Source
const CountrySy string = "SY" /* SYRIAN ARAB REPUBLIC */

CountrySy is country code for /* SYRIAN ARAB REPUBLIC */

View Source
const CountrySz string = "SZ" /* SWAZILAND */

CountrySz is country code for /* SWAZILAND */

View Source
const CountryTc string = "TC" /* TURKS AND CAICOS ISLANDS */

CountryTc is country code for /* TURKS AND CAICOS ISLANDS */

View Source
const CountryTd string = "TD" /* CHAD */

CountryTd is country code for /* CHAD */

View Source
const CountryTf string = "TF" /* FRENCH SOUTHERN TERRITORIES */

CountryTf is country code for /* FRENCH SOUTHERN TERRITORIES */

View Source
const CountryTg string = "TG" /* TOGO */

CountryTg is country code for /* TOGO */

View Source
const CountryTh string = "TH" /* THAILAND */

CountryTh is country code for /* THAILAND */

View Source
const CountryTj string = "TJ" /* TAJIKISTAN */

CountryTj is country code for /* TAJIKISTAN */

View Source
const CountryTk string = "TK" /* TOKELAU */

CountryTk is country code for /* TOKELAU */

View Source
const CountryTm string = "TM" /* TURKMENISTAN */

CountryTm is country code for /* TURKMENISTAN */

View Source
const CountryTn string = "TN" /* TUNISIA */

CountryTn is country code for /* TUNISIA */

View Source
const CountryTo string = "TO" /* TONGA */

CountryTo is country code for /* TONGA */

View Source
const CountryTp string = "TP" /* EAST TIMOR */

CountryTp is country code for /* EAST TIMOR */

View Source
const CountryTr string = "TR" /* TURKEY */

CountryTr is country code for /* TURKEY */

View Source
const CountryTt string = "TT" /* TRINIDAD AND TOBAGO */

CountryTt is country code for /* TRINIDAD AND TOBAGO */

View Source
const CountryTv string = "TV" /* TUVALU */

CountryTv is country code for /* TUVALU */

View Source
const CountryTw string = "TW" /* TAIWAN, PROVINCE OF CHINA */

CountryTw is country code for /* TAIWAN, PROVINCE OF CHINA */

View Source
const CountryTz string = "TZ" /* TANZANIA, UNITED REPUBLIC OF */

CountryTz is country code for /* TANZANIA, UNITED REPUBLIC OF */

View Source
const CountryUa string = "UA" /* UKRAINE */

CountryUa is country code for /* UKRAINE */

View Source
const CountryUg string = "UG" /* UGANDA */

CountryUg is country code for /* UGANDA */

View Source
const CountryUm string = "UM" /* UNITED STATES MINOR OUTLYING ISLANDS */

CountryUm is country code for /* UNITED STATES MINOR OUTLYING ISLANDS */

View Source
const CountryUs string = "US" /* UNITED STATES */

CountryUs is country code for /* UNITED STATES */

View Source
const CountryUy string = "UY" /* URUGUAY */

CountryUy is country code for /* URUGUAY */

View Source
const CountryUz string = "UZ" /* UZBEKISTAN */

CountryUz is country code for /* UZBEKISTAN */

View Source
const CountryVa string = "VA" /* VATICAN CITY STATE (HOLY SEE) */

CountryVa is country code for /* VATICAN CITY STATE (HOLY SEE) */

View Source
const CountryVc string = "VC" /* SAINT VINCENT AND THE GRENADINES */

CountryVc is country code for /* SAINT VINCENT AND THE GRENADINES */

View Source
const CountryVe string = "VE" /* VENEZUELA */

CountryVe is country code for /* VENEZUELA */

View Source
const CountryVg string = "VG" /* VIRGIN ISLANDS (BRITISH) */

CountryVg is country code for /* VIRGIN ISLANDS (BRITISH) */

View Source
const CountryVi string = "VI" /* VIRGIN ISLANDS (U.S.) */

CountryVi is country code for /* VIRGIN ISLANDS (U.S.) */

View Source
const CountryVn string = "VN" /* VIET NAM */

CountryVn is country code for /* VIET NAM */

View Source
const CountryVu string = "VU" /* VANUATU */

CountryVu is country code for /* VANUATU */

View Source
const CountryWf string = "WF" /* WALLIS AND FUTUNA ISLANDS */

CountryWf is country code for /* WALLIS AND FUTUNA ISLANDS */

View Source
const CountryWs string = "WS" /* SAMOA */

CountryWs is country code for /* SAMOA */

View Source
const CountryYe string = "YE" /* YEMEN */

CountryYe is country code for /* YEMEN */

View Source
const CountryYt string = "YT" /* MAYOTTE */

CountryYt is country code for /* MAYOTTE */

View Source
const CountryYu string = "YU" /* YUGOSLAVIA */

CountryYu is country code for /* YUGOSLAVIA */

View Source
const CountryZa string = "ZA" /* SOUTH AFRICA */

CountryZa is country code for /* SOUTH AFRICA */

View Source
const CountryZm string = "ZM" /* ZAMBIA */

CountryZm is country code for /* ZAMBIA */

View Source
const CountryZr string = "ZR" /* ZAIRE */

CountryZr is country code for /* ZAIRE */

View Source
const CountryZw string = "ZW" /* ZIMBABWE */

CountryZw is country code for /* ZIMBABWE */

View Source
const DefCharSpace int = 0

DefCharSpace is default character space

View Source
const DefFlatness int = 1

DefFlatness is default flatness level

View Source
const DefFont string = "Helvetica"

DefFont is default font

View Source
const DefFontSize int = 10

DefFontSize is default font size

View Source
const DefHscaling int = 100

DefHscaling is default horizontal scaling in percents

View Source
const DefLeading int = 0

DefLeading is default leading value

View Source
const DefLineWidth int = 1

DefLineWidth default line width

View Source
const DefMiterlimit int = 10

DefMiterlimit is default miter limit

View Source
const DefPageHeight float32 = 841.89

DefPageHeight is default page height

View Source
const DefPageNum int = 1

DefPageNum is default page numeration style

View Source
const DefPageWidth float32 = 595.276

DefPageWidth is default page width

View Source
const DefRise int = 0

DefRise is default text rise value

View Source
const DefWordSpace int = 0

DefWordSpace is default word space

View Source
const EnableCopy int = 16

EnableCopy is is permission that enables copying information from the document

View Source
const EnableEdit int = 32

EnableEdit is is permission that enables document modification

View Source
const EnableEditAll int = 8

EnableEditAll is permission that enables document modification

View Source
const EnablePrint int = 4

EnablePrint is permission that enables document printing

View Source
const EnableRead int = 0

EnableRead is permission that enables document reading

View Source
const EncodingCp1250 string = "CP1250"

EncodingCp1250 is the name of codepage 1250 encoding

View Source
const EncodingCp1251 string = "CP1251"

EncodingCp1251 is the name of codepage 1251 encoding

View Source
const EncodingCp1252 string = "CP1252"

EncodingCp1252 is the name of codepage 1252 encoding

View Source
const EncodingCp1253 string = "CP1253"

EncodingCp1253 is the name of codepage 1253 encoding

View Source
const EncodingCp1254 string = "CP1254"

EncodingCp1254 is the name of codepage 1254 encoding

View Source
const EncodingCp1255 string = "CP1255"

EncodingCp1255 is the name of codepage 1255 encoding

View Source
const EncodingCp1256 string = "CP1256"

EncodingCp1256 is the name of codepage 1256 encoding

View Source
const EncodingCp1257 string = "CP1257"

EncodingCp1257 is the name of codepage 1257 encoding

View Source
const EncodingCp1258 string = "CP1258"

EncodingCp1258 is the name of codepage 1258 encoding

View Source
const EncodingFontSpecific string = "FontSpecific"

EncodingFontSpecific is the name of font specific encoding

View Source
const EncodingIso885910 string = "ISO8859-10"

EncodingIso885910 is the name of ISO8859-10 encoding

View Source
const EncodingIso885911 string = "ISO8859-11"

EncodingIso885911 is the name of ISO8859-11 encoding

View Source
const EncodingIso885913 string = "ISO8859-13"

EncodingIso885913 is the name of ISO8859-13 encoding

View Source
const EncodingIso885914 string = "ISO8859-14"

EncodingIso885914 is the name of ISO8859-14 encoding

View Source
const EncodingIso885915 string = "ISO8859-15"

EncodingIso885915 is the name of ISO8859-15 encoding

View Source
const EncodingIso885916 string = "ISO8859-16"

EncodingIso885916 is the name of ISO8859-16 encoding

View Source
const EncodingIso88592 string = "ISO8859-2"

EncodingIso88592 is the name of ISO8859-2 encoding

View Source
const EncodingIso88593 string = "ISO8859-3"

EncodingIso88593 is the name of ISO8859-3 encoding

View Source
const EncodingIso88594 string = "ISO8859-4"

EncodingIso88594 is the name of ISO8859-4 encoding

View Source
const EncodingIso88595 string = "ISO8859-5"

EncodingIso88595 is the name of ISO8859-5 encoding

View Source
const EncodingIso88596 string = "ISO8859-6"

EncodingIso88596 is the name of ISO8859-6 encoding

View Source
const EncodingIso88597 string = "ISO8859-7"

EncodingIso88597 is the name of ISO8859-7 encoding

View Source
const EncodingIso88598 string = "ISO8859-8"

EncodingIso88598 is the name of ISO8859-8 encoding

View Source
const EncodingIso88599 string = "ISO8859-9"

EncodingIso88599 is the name of ISO8859-9 encoding

View Source
const EncodingKoi8R string = "KOI8-R"

EncodingKoi8R is the name of codepage KOI-8(R) encoding

View Source
const EncodingMacRoman string = "MacRomanEncoding"

EncodingMacRoman is the name of mac roman encoding

View Source
const EncodingStandard string = "StandardEncoding"

EncodingStandard is the name of the standard encoding

View Source
const EncodingWinAnsi string = "WinAnsiEncoding"

EncodingWinAnsi is the name of windows ansi encoding

View Source
const EncryptR2 int = 2

EncryptR2 is encryption mode

View Source
const EncryptR3 int = 3

EncryptR3 is encryption mode

View Source
const ErrAnnotInvalidBorderStyle int = 0x1073

ErrAnnotInvalidBorderStyle is a error code

View Source
const ErrAnnotInvalidIcon int = 0x1072

ErrAnnotInvalidIcon is a error code

View Source
const ErrArrayCountErr int = 0x1001

ErrArrayCountErr is a error code

View Source
const ErrArrayItemNotFound int = 0x1002

ErrArrayItemNotFound is a error code

View Source
const ErrArrayItemUnexpectedType int = 0x1003

ErrArrayItemUnexpectedType is a error code

View Source
const ErrBinaryLengthErr int = 0x1004

ErrBinaryLengthErr is a error code

View Source
const ErrCannotGetPallet int = 0x1005

ErrCannotGetPallet is a error code

View Source
const ErrDictCountErr int = 0x1007

ErrDictCountErr is a error code

View Source
const ErrDictItemNotFound int = 0x1008

ErrDictItemNotFound is a error code

View Source
const ErrDictItemUnexpectedType int = 0x1009

ErrDictItemUnexpectedType is a error code

View Source
const ErrDictStreamLengthNotFound int = 0x100A

ErrDictStreamLengthNotFound is a error code

View Source
const ErrDocEncryptdictNotFound int = 0x100B

ErrDocEncryptdictNotFound is a error code

View Source
const ErrDocInvalidObject int = 0x100C

ErrDocInvalidObject is a error code

View Source
const ErrDuplicateRegistration int = 0x100E

ErrDuplicateRegistration is a error code

View Source
const ErrEncryptInvalidPassword int = 0x1011

ErrEncryptInvalidPassword is a error code

View Source
const ErrErrUnknownClass int = 0x1013

ErrErrUnknownClass is a error code

View Source
const ErrExceedGstateLimit int = 0x1014

ErrExceedGstateLimit is a error code

View Source
const ErrExceedJwwCodeNumLimit int = 0x100F

ErrExceedJwwCodeNumLimit is a error code

View Source
const ErrExtGstateOutOfRange int = 0x1080

ErrExtGstateOutOfRange is a error code

View Source
const ErrExtGstateReadOnly int = 0x1082

ErrExtGstateReadOnly is a error code

View Source
const ErrFailedToAllocMem int = 0x1015

ErrFailedToAllocMem is a error code

View Source
const ErrFileIoError int = 0x1016

ErrFileIoError is a error code

View Source
const ErrFileOpenError int = 0x1017

ErrFileOpenError is a error code

View Source
const ErrFontExists int = 0x1019

ErrFontExists is a error code

View Source
const ErrFontInvalidWidthsTable int = 0x101A

ErrFontInvalidWidthsTable is a error code

View Source
const ErrInvalidAfmHeader int = 0x101B

ErrInvalidAfmHeader is a error code

View Source
const ErrInvalidAnnotation int = 0x101C

ErrInvalidAnnotation is a error code

View Source
const ErrInvalidBitPerComponent int = 0x101E

ErrInvalidBitPerComponent is a error code

View Source
const ErrInvalidCharMatrixData int = 0x101F

ErrInvalidCharMatrixData is a error code

View Source
const ErrInvalidColorSpace int = 0x1020

ErrInvalidColorSpace is a error code

View Source
const ErrInvalidCompressionMode int = 0x1021

ErrInvalidCompressionMode is a error code

View Source
const ErrInvalidDateTime int = 0x1022

ErrInvalidDateTime is a error code

View Source
const ErrInvalidDestination int = 0x1023

ErrInvalidDestination is a error code

View Source
const ErrInvalidDocument int = 0x1025

ErrInvalidDocument is a error code

View Source
const ErrInvalidDocumentState int = 0x1026

ErrInvalidDocumentState is a error code

View Source
const ErrInvalidEncoder int = 0x1027

ErrInvalidEncoder is a error code

View Source
const ErrInvalidEncoderType int = 0x1028

ErrInvalidEncoderType is a error code

View Source
const ErrInvalidEncodingName int = 0x102B

ErrInvalidEncodingName is a error code

View Source
const ErrInvalidEncryptKeyLen int = 0x102C

ErrInvalidEncryptKeyLen is a error code

View Source
const ErrInvalidExtGstate int = 0x1081

ErrInvalidExtGstate is a error code

View Source
const ErrInvalidFont int = 0x1075

ErrInvalidFont is a error code

View Source
const ErrInvalidFontName int = 0x102F

ErrInvalidFontName is a error code

View Source
const ErrInvalidFontdefData int = 0x102D

ErrInvalidFontdefData is a error code

View Source
const ErrInvalidFontdefType int = 0x102E

ErrInvalidFontdefType is a error code

View Source
const ErrInvalidIccComponentNum int = 0x1085

ErrInvalidIccComponentNum is a error code

View Source
const ErrInvalidImage int = 0x1030

ErrInvalidImage is a error code

View Source
const ErrInvalidJpegData int = 0x1031

ErrInvalidJpegData is a error code

View Source
const ErrInvalidNData int = 0x1032

ErrInvalidNData is a error code

View Source
const ErrInvalidObjID int = 0x1034

ErrInvalidObjID is a error code

View Source
const ErrInvalidObject int = 0x1033

ErrInvalidObject is a error code

View Source
const ErrInvalidOperation int = 0x1035

ErrInvalidOperation is a error code

View Source
const ErrInvalidOutline int = 0x1036

ErrInvalidOutline is a error code

View Source
const ErrInvalidPage int = 0x1037

ErrInvalidPage is a error code

View Source
const ErrInvalidPageIndex int = 0x1067

ErrInvalidPageIndex is a error code

View Source
const ErrInvalidPageSlideshowType int = 0x1079

ErrInvalidPageSlideshowType is a error code

View Source
const ErrInvalidPages int = 0x1038

ErrInvalidPages is a error code

View Source
const ErrInvalidParameter int = 0x1039

ErrInvalidParameter is a error code

View Source
const ErrInvalidPngImage int = 0x103B

ErrInvalidPngImage is a error code

View Source
const ErrInvalidStream int = 0x103C

ErrInvalidStream is a error code

View Source
const ErrInvalidTtcFile int = 0x103F

ErrInvalidTtcFile is a error code

View Source
const ErrInvalidTtcIndex int = 0x1040

ErrInvalidTtcIndex is a error code

View Source
const ErrInvalidU3dData int = 0x1083

ErrInvalidU3dData is a error code

View Source
const ErrInvalidURI int = 0x1068

ErrInvalidURI is a error code

View Source
const ErrInvalidWxData int = 0x1041

ErrInvalidWxData is a error code

View Source
const ErrItemNotFound int = 0x1042

ErrItemNotFound is a error code

View Source
const ErrLibpngError int = 0x1043

ErrLibpngError is a error code

View Source
const ErrMissingFileNameEntry int = 0x103D

ErrMissingFileNameEntry is a error code

View Source
const ErrNameCannotGetNames int = 0x1084

ErrNameCannotGetNames is a error code

View Source
const ErrNameInvalidValue int = 0x1044

ErrNameInvalidValue is a error code

View Source
const ErrNameOutOfRange int = 0x1045

ErrNameOutOfRange is a error code

View Source
const ErrPageCannotFindObject int = 0x104A

ErrPageCannotFindObject is a error code

View Source
const ErrPageCannotGetRootPages int = 0x104B

ErrPageCannotGetRootPages is a error code

View Source
const ErrPageCannotRestoreGstate int = 0x104C

ErrPageCannotRestoreGstate is a error code

View Source
const ErrPageCannotSetParent int = 0x104D

ErrPageCannotSetParent is a error code

View Source
const ErrPageFontNotFound int = 0x104E

ErrPageFontNotFound is a error code

View Source
const ErrPageInsufficientSpace int = 0x1076

ErrPageInsufficientSpace is a error code

View Source
const ErrPageInvalidDirection int = 0x1074

ErrPageInvalidDirection is a error code

View Source
const ErrPageInvalidDisplayTime int = 0x1077

ErrPageInvalidDisplayTime is a error code

View Source
const ErrPageInvalidFont int = 0x104F

ErrPageInvalidFont is a error code

View Source
const ErrPageInvalidFontSize int = 0x1050

ErrPageInvalidFontSize is a error code

View Source
const ErrPageInvalidGmode int = 0x1051

ErrPageInvalidGmode is a error code

View Source
const ErrPageInvalidIndex int = 0x1052

ErrPageInvalidIndex is a error code

View Source
const ErrPageInvalidParamCount int = 0x1048

ErrPageInvalidParamCount is a error code

View Source
const ErrPageInvalidRotateValue int = 0x1053

ErrPageInvalidRotateValue is a error code

View Source
const ErrPageInvalidSize int = 0x1054

ErrPageInvalidSize is a error code

View Source
const ErrPageInvalidTransitionTime int = 0x1078

ErrPageInvalidTransitionTime is a error code

View Source
const ErrPageInvalidXObject int = 0x1055

ErrPageInvalidXObject is a error code

View Source
const ErrPageLayoutOutOfRange int = 0x1069

ErrPageLayoutOutOfRange is a error code

View Source
const ErrPageModeOutOfRange int = 0x1070

ErrPageModeOutOfRange is a error code

View Source
const ErrPageNumStyleOutOfRange int = 0x1071

ErrPageNumStyleOutOfRange is a error code

View Source
const ErrPageOutOfRange int = 0x1056

ErrPageOutOfRange is a error code

View Source
const ErrPagesMissingKidsEntry int = 0x1049

ErrPagesMissingKidsEntry is a error code

View Source
const ErrRealOutOfRange int = 0x1057

ErrRealOutOfRange is a error code

View Source
const ErrStreamEOF int = 0x1058

ErrStreamEOF is a error code

View Source
const ErrStreamReadContinue int = 0x1059

ErrStreamReadContinue is a error code

View Source
const ErrStringOutOfRange int = 0x105B

ErrStringOutOfRange is a error code

View Source
const ErrThisFuncWasSkipped int = 0x105C

ErrThisFuncWasSkipped is a error code

View Source
const ErrTtfCannotEmbeddingFont int = 0x105D

ErrTtfCannotEmbeddingFont is a error code

View Source
const ErrTtfInvalidCharMap int = 0x105E

ErrTtfInvalidCharMap is a error code

View Source
const ErrTtfInvalidFormat int = 0x105F

ErrTtfInvalidFormat is a error code

View Source
const ErrTtfMissingTable int = 0x1060

ErrTtfMissingTable is a error code

View Source
const ErrUnsupportedFontType int = 0x1061

ErrUnsupportedFontType is a error code

View Source
const ErrUnsupportedFunc int = 0x1062

ErrUnsupportedFunc is a error code

View Source
const ErrUnsupportedJpegFormat int = 0x1063

ErrUnsupportedJpegFormat is a error code

View Source
const ErrUnsupportedType1Font int = 0x1064

ErrUnsupportedType1Font is a error code

View Source
const ErrXrefCountErr int = 0x1065

ErrXrefCountErr is a error code

View Source
const ErrZlibError int = 0x1066

ErrZlibError is a error code

View Source
const False int = 0

False is false value for libharu

View Source
const FitWindow int = 8

FitWindow is a viewer preference value

View Source
const FontAllCap int = 65536

FontAllCap is font type

View Source
const FontFixedWidth int = 1

FontFixedWidth is font type

View Source
const FontForceBold int = 262144

FontForceBold is font type

View Source
const FontItalic int = 64

FontItalic is font type

View Source
const FontScript int = 8

FontScript is font type

View Source
const FontSerif int = 2

FontSerif is font type

View Source
const FontSmallCap int = 131072

FontSmallCap is font type

View Source
const FontStdCharset int = 32

FontStdCharset is font type

View Source
const FontSymbolic int = 4

FontSymbolic is font type

View Source
const GmodeClippingPath int = 0x0008

GmodeClippingPath is page graphics mode

View Source
const GmodeExternalObject int = 0x0040

GmodeExternalObject is page graphics mode

View Source
const GmodeInlineImage int = 0x0020

GmodeInlineImage is page graphics mode

View Source
const GmodePageDescription int = 0x0001

GmodePageDescription is page graphics mode

View Source
const GmodePathObject int = 0x0002

GmodePathObject is page graphics mode

View Source
const GmodeShading int = 0x0010

GmodeShading is page graphics mode

View Source
const GmodeTextObject int = 0x0004

GmodeTextObject is page graphics mode

View Source
const HideMenubar int = 2

HideMenubar is a viewer preference value

View Source
const HideToolbar int = 1

HideToolbar is a viewer preference value

View Source
const HideWindowUI int = 4

HideWindowUI is a viewer preference value

View Source
const InfoAuthor int = 2

InfoAuthor is an identifier of an attribute

View Source
const InfoCreationDate int = 0

InfoCreationDate is an identifier of a attribute

View Source
const InfoCreator int = 3

InfoCreator is an identifier of an attribute

View Source
const InfoGtsPdfX int = 9

InfoGtsPdfX is an identifier of an attribute

View Source
const InfoKeywords int = 7

InfoKeywords is an identifier of an attribute

View Source
const InfoModDate int = 1

InfoModDate is an identifier of a attribute

View Source
const InfoProducer int = 4

InfoProducer is an identifier of an attribute

View Source
const InfoSubject int = 6

InfoSubject is an identifier of an attribute

View Source
const InfoTitle int = 5

InfoTitle is an identifier of an attribute

View Source
const InfoTrapped int = 8

InfoTrapped is an identifier of an attribute

View Source
const LangAa string = "aa" /* Afar */

LangAa is language code for /* Afar */

View Source
const LangAb string = "ab" /* Abkhazian */

LangAb is language code for /* Abkhazian */

View Source
const LangAf string = "af" /* Afrikaans */

LangAf is language code for /* Afrikaans */

View Source
const LangAm string = "am" /* Amharic */

LangAm is language code for /* Amharic */

View Source
const LangAr string = "ar" /* Arabic */

LangAr is language code for /* Arabic */

View Source
const LangAs string = "as" /* Assamese */

LangAs is language code for /* Assamese */

View Source
const LangAy string = "ay" /* Aymara */

LangAy is language code for /* Aymara */

View Source
const LangAz string = "az" /* Azerbaijani */

LangAz is language code for /* Azerbaijani */

View Source
const LangBa string = "ba" /* Bashkir */

LangBa is language code for /* Bashkir */

View Source
const LangBe string = "be" /* Byelorussian */

LangBe is language code for /* Byelorussian */

View Source
const LangBg string = "bg" /* Bulgarian */

LangBg is language code for /* Bulgarian */

View Source
const LangBh string = "bh" /* Bihari */

LangBh is language code for /* Bihari */

View Source
const LangBi string = "bi" /* Bislama */

LangBi is language code for /* Bislama */

View Source
const LangBn string = "bn" /* Bengali Bangla */

LangBn is language code for /* Bengali Bangla */

View Source
const LangBo string = "bo" /* Tibetan */

LangBo is language code for /* Tibetan */

View Source
const LangBr string = "br" /* Breton */

LangBr is language code for /* Breton */

View Source
const LangCa string = "ca" /* Catalan */

LangCa is language code for /* Catalan */

View Source
const LangCo string = "co" /* Corsican */

LangCo is language code for /* Corsican */

View Source
const LangCs string = "cs" /* Czech */

LangCs is language code for /* Czech */

View Source
const LangCy string = "cy" /* Welsh */

LangCy is language code for /* Welsh */

View Source
const LangDa string = "da" /* Danish */

LangDa is language code for /* Danish */

View Source
const LangDe string = "de" /* German */

LangDe is language code for /* German */

View Source
const LangDz string = "dz" /* Bhutani */

LangDz is language code for /* Bhutani */

View Source
const LangEl string = "el" /* Greek */

LangEl is language code for /* Greek */

View Source
const LangEn string = "en" /* English */

LangEn is language code for /* English */

View Source
const LangEo string = "eo" /* Esperanto */

LangEo is language code for /* Esperanto */

View Source
const LangEs string = "es" /* Spanish */

LangEs is language code for /* Spanish */

View Source
const LangEt string = "et" /* Estonian */

LangEt is language code for /* Estonian */

View Source
const LangEu string = "eu" /* Basque */

LangEu is language code for /* Basque */

View Source
const LangFa string = "fa" /* Persian */

LangFa is language code for /* Persian */

View Source
const LangFi string = "fi" /* Finnish */

LangFi is language code for /* Finnish */

View Source
const LangFj string = "fj" /* Fiji */

LangFj is language code for /* Fiji */

View Source
const LangFo string = "fo" /* Faeroese */

LangFo is language code for /* Faeroese */

View Source
const LangFr string = "fr" /* French */

LangFr is language code for /* French */

View Source
const LangFy string = "fy" /* Frisian */

LangFy is language code for /* Frisian */

View Source
const LangGa string = "ga" /* Irish */

LangGa is language code for /* Irish */

View Source
const LangGd string = "gd" /* Scots Gaelic */

LangGd is language code for /* Scots Gaelic */

View Source
const LangGl string = "gl" /* Galician */

LangGl is language code for /* Galician */

View Source
const LangGn string = "gn" /* Guarani */

LangGn is language code for /* Guarani */

View Source
const LangGu string = "gu" /* Gujarati */

LangGu is language code for /* Gujarati */

View Source
const LangHa string = "ha" /* Hausa */

LangHa is language code for /* Hausa */

View Source
const LangHi string = "hi" /* Hindi */

LangHi is language code for /* Hindi */

View Source
const LangHr string = "hr" /* Croatian */

LangHr is language code for /* Croatian */

View Source
const LangHu string = "hu" /* Hungarian */

LangHu is language code for /* Hungarian */

View Source
const LangHy string = "hy" /* Armenian */

LangHy is language code for /* Armenian */

View Source
const LangIa string = "ia" /* Interlingua */

LangIa is language code for /* Interlingua */

View Source
const LangIe string = "ie" /* Interlingue */

LangIe is language code for /* Interlingue */

View Source
const LangIk string = "ik" /* Inupiak */

LangIk is language code for /* Inupiak */

View Source
const LangIn string = "in" /* Indonesian */

LangIn is language code for /* Indonesian */

View Source
const LangIs string = "is" /* Icelandic */

LangIs is language code for /* Icelandic */

View Source
const LangIt string = "it" /* Italian */

LangIt is language code for /* Italian */

View Source
const LangIw string = "iw" /* Hebrew */

LangIw is language code for /* Hebrew */

View Source
const LangJa string = "ja" /* Japanese */

LangJa is language code for /* Japanese */

View Source
const LangJi string = "ji" /* Yiddish */

LangJi is language code for /* Yiddish */

View Source
const LangJw string = "jw" /* Javanese */

LangJw is language code for /* Javanese */

View Source
const LangKa string = "ka" /* Georgian */

LangKa is language code for /* Georgian */

View Source
const LangKk string = "kk" /* Kazakh */

LangKk is language code for /* Kazakh */

View Source
const LangKl string = "kl" /* Greenlandic */

LangKl is language code for /* Greenlandic */

View Source
const LangKm string = "km" /* Cambodian */

LangKm is language code for /* Cambodian */

View Source
const LangKn string = "kn" /* Kannada */

LangKn is language code for /* Kannada */

View Source
const LangKo string = "ko" /* Korean */

LangKo is language code for /* Korean */

View Source
const LangKs string = "ks" /* Kashmiri */

LangKs is language code for /* Kashmiri */

View Source
const LangKu string = "ku" /* Kurdish */

LangKu is language code for /* Kurdish */

View Source
const LangKy string = "ky" /* Kirghiz */

LangKy is language code for /* Kirghiz */

View Source
const LangLa string = "la" /* Latin */

LangLa is language code for /* Latin */

View Source
const LangLn string = "ln" /* Lingala */

LangLn is language code for /* Lingala */

View Source
const LangLo string = "lo" /* Laothian */

LangLo is language code for /* Laothian */

View Source
const LangLt string = "lt" /* Lithuanian */

LangLt is language code for /* Lithuanian */

View Source
const LangLv string = "lv" /* Latvian,Lettish */

LangLv is language code for /* Latvian,Lettish */

View Source
const LangMg string = "mg" /* Malagasy */

LangMg is language code for /* Malagasy */

View Source
const LangMi string = "mi" /* Maori */

LangMi is language code for /* Maori */

View Source
const LangMk string = "mk" /* Macedonian */

LangMk is language code for /* Macedonian */

View Source
const LangMl string = "ml" /* Malayalam */

LangMl is language code for /* Malayalam */

View Source
const LangMn string = "mn" /* Mongolian */

LangMn is language code for /* Mongolian */

View Source
const LangMo string = "mo" /* Moldavian */

LangMo is language code for /* Moldavian */

View Source
const LangMr string = "mr" /* Marathi */

LangMr is language code for /* Marathi */

View Source
const LangMs string = "ms" /* Malay */

LangMs is language code for /* Malay */

View Source
const LangMt string = "mt" /* Maltese */

LangMt is language code for /* Maltese */

View Source
const LangMy string = "my" /* Burmese */

LangMy is language code for /* Burmese */

View Source
const LangNa string = "na" /* Nauru */

LangNa is language code for /* Nauru */

View Source
const LangNe string = "ne" /* Nepali */

LangNe is language code for /* Nepali */

View Source
const LangNl string = "nl" /* Dutch */

LangNl is language code for /* Dutch */

View Source
const LangNo string = "no" /* Norwegian */

LangNo is language code for /* Norwegian */

View Source
const LangOc string = "oc" /* Occitan */

LangOc is language code for /* Occitan */

View Source
const LangOm string = "om" /* (Afan)Oromo */

LangOm is language code for /* (Afan)Oromo */

View Source
const LangOr string = "or" /* Oriya */

LangOr is language code for /* Oriya */

View Source
const LangPa string = "pa" /* Punjabi */

LangPa is language code for /* Punjabi */

View Source
const LangPl string = "pl" /* Polish */

LangPl is language code for /* Polish */

View Source
const LangPs string = "ps" /* Pashto,Pushto */

LangPs is language code for /* Pashto,Pushto */

View Source
const LangPt string = "pt" /* Portuguese  */

LangPt is language code for /* Portuguese */

View Source
const LangQu string = "qu" /* Quechua */

LangQu is language code for /* Quechua */

View Source
const LangRm string = "rm" /* Rhaeto-Romance */

LangRm is language code for /* Rhaeto-Romance */

View Source
const LangRn string = "rn" /* Kirundi */

LangRn is language code for /* Kirundi */

View Source
const LangRo string = "ro" /* Romanian */

LangRo is language code for /* Romanian */

View Source
const LangRu string = "ru" /* Russian */

LangRu is language code for /* Russian */

View Source
const LangRw string = "rw" /* Kinyarwanda */

LangRw is language code for /* Kinyarwanda */

View Source
const LangSa string = "sa" /* Sanskrit */

LangSa is language code for /* Sanskrit */

View Source
const LangSd string = "sd" /* Sindhi */

LangSd is language code for /* Sindhi */

View Source
const LangSg string = "sg" /* Sangro */

LangSg is language code for /* Sangro */

View Source
const LangSh string = "sh" /* Serbo-Croatian */

LangSh is language code for /* Serbo-Croatian */

View Source
const LangSi string = "si" /* Singhalese */

LangSi is language code for /* Singhalese */

View Source
const LangSk string = "sk" /* Slovak */

LangSk is language code for /* Slovak */

View Source
const LangSl string = "sl" /* Slovenian */

LangSl is language code for /* Slovenian */

View Source
const LangSm string = "sm" /* Samoan */

LangSm is language code for /* Samoan */

View Source
const LangSn string = "sn" /* Shona */

LangSn is language code for /* Shona */

View Source
const LangSo string = "so" /* Somali */

LangSo is language code for /* Somali */

View Source
const LangSq string = "sq" /* Albanian */

LangSq is language code for /* Albanian */

View Source
const LangSr string = "sr" /* Serbian */

LangSr is language code for /* Serbian */

View Source
const LangSs string = "ss" /* Siswati */

LangSs is language code for /* Siswati */

View Source
const LangSt string = "st" /* Sesotho */

LangSt is language code for /* Sesotho */

View Source
const LangSu string = "su" /* Sundanese */

LangSu is language code for /* Sundanese */

View Source
const LangSv string = "sv" /* Swedish */

LangSv is language code for /* Swedish */

View Source
const LangSw string = "sw" /* Swahili */

LangSw is language code for /* Swahili */

View Source
const LangTa string = "ta" /* Tamil */

LangTa is language code for /* Tamil */

View Source
const LangTe string = "te" /* Tegulu */

LangTe is language code for /* Tegulu */

View Source
const LangTg string = "tg" /* Tajik */

LangTg is language code for /* Tajik */

View Source
const LangTh string = "th" /* Thai */

LangTh is language code for /* Thai */

View Source
const LangTi string = "ti" /* Tigrinya */

LangTi is language code for /* Tigrinya */

View Source
const LangTk string = "tk" /* Turkmen */

LangTk is language code for /* Turkmen */

View Source
const LangTl string = "tl" /* Tagalog */

LangTl is language code for /* Tagalog */

View Source
const LangTn string = "tn" /* Setswanato Tonga */

LangTn is language code for /* Setswanato Tonga */

View Source
const LangTr string = "tr" /* Turkish */

LangTr is language code for /* Turkish */

View Source
const LangTs string = "ts" /* Tsonga */

LangTs is language code for /* Tsonga */

View Source
const LangTt string = "tt" /* Tatar */

LangTt is language code for /* Tatar */

View Source
const LangTw string = "tw" /* Twi */

LangTw is language code for /* Twi */

View Source
const LangUk string = "uk" /* Ukrainian */

LangUk is language code for /* Ukrainian */

View Source
const LangUr string = "ur" /* Urdu */

LangUr is language code for /* Urdu */

View Source
const LangUz string = "uz" /* Uzbek */

LangUz is language code for /* Uzbek */

View Source
const LangVi string = "vi" /* Vietnamese */

LangVi is language code for /* Vietnamese */

View Source
const LangVo string = "vo" /* Volapuk */

LangVo is language code for /* Volapuk */

View Source
const LangWo string = "wo" /* Wolof */

LangWo is language code for /* Wolof */

View Source
const LangXh string = "xh" /* Xhosa */

LangXh is language code for /* Xhosa */

View Source
const LangYo string = "yo" /* Yoruba */

LangYo is language code for /* Yoruba */

View Source
const LangZh string = "zh" /* Chinese */

LangZh is language code for /* Chinese */

View Source
const LangZu string = "zu" /* Zulu */

LangZu is language code for /* Zulu */

View Source
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

View Source
const LimitMaxCid int = 65535

LimitMaxCid ???

View Source
const LimitMaxDeviceN int = 8

LimitMaxDeviceN ???

View Source
const LimitMaxDeviceNV15 int = 32

LimitMaxDeviceNV15 ???

View Source
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

View Source
const LimitMaxGstate int = 28

LimitMaxGstate the maximum of states in stack

View Source
const LimitMaxInt int = 2147483647

LimitMaxInt is maximum integer value for PDF 1.4

View Source
const LimitMaxNameLen int = 127

LimitMaxNameLen is maximum object name length for PDF 1.4

View Source
const LimitMaxReal float32 = 3.4e38 // per PDF 1.7 spec, Annex C, old value  32767

LimitMaxReal is maximum real value for PDF 1.4

View Source
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

View Source
const LimitMaxXrefElement int = 8388607

LimitMaxXrefElement the maximum XRef elements

View Source
const LimitMinInt int = -2147483647

LimitMinInt is minimum integer value for PDF 1.4

View Source
const LimitMinReal float32 = -3.4e38 // per PDF 1.7 spec, Annex C, old value -32767

LimitMinReal is minimum real value for PDF 1.4

View Source
const LineAnnotButt int = 6

LineAnnotButt is line annotation type

View Source
const LineAnnotCapInline int = 0

LineAnnotCapInline is line annotation line caption type

View Source
const LineAnnotCapTop int = 1

LineAnnotCapTop is line annotation line caption type

View Source
const LineAnnotCircle int = 2

LineAnnotCircle is line annotation type

View Source
const LineAnnotClosedarrow int = 5

LineAnnotClosedarrow is line annotation type

View Source
const LineAnnotDiamond int = 3

LineAnnotDiamond is line annotation type

View Source
const LineAnnotNone int = 0

LineAnnotNone is line annotation type

View Source
const LineAnnotOpenarrow int = 4

LineAnnotOpenarrow is line annotation type

View Source
const LineAnnotRClosedArrow int = 8

LineAnnotRClosedArrow is line annotation type

View Source
const LineAnnotROpenArrow int = 7

LineAnnotROpenArrow is line annotation type

View Source
const LineAnnotSlash int = 9

LineAnnotSlash is line annotation type

View Source
const LineAnnotSquare int = 1

LineAnnotSquare is line annotation type

View Source
const MaxCharspace int = 300

MaxCharspace is the maximum character space

View Source
const MaxDashPattern int = 100

MaxDashPattern is maximum hash pattern length

View Source
const MaxFontSize int = 600

MaxFontSize is the maximum font size

View Source
const MaxGenerationNum int = 65535

MaxGenerationNum ???

View Source
const MaxHorizontalscaling int = 300

MaxHorizontalscaling is the maximum horizontal scaling

View Source
const MaxJwwNum int = 128

MaxJwwNum is ???

View Source
const MaxLeading int = 300

MaxLeading is the maximum leading

View Source
const MaxLineWidth int = 100

MaxLineWidth is maximum line width

View Source
const MaxMagnificationFactor int = 3200

MaxMagnificationFactor the maximum magnification factor

View Source
const MaxPageHeight int = 14400

MaxPageHeight is the maximum page height

View Source
const MaxPageSize int = 14400

MaxPageSize is the maximum page size

View Source
const MaxPageWidth int = 14400

MaxPageWidth is the maximum page width

View Source
const MaxWordspace int = 300

MaxWordspace is the maximum word space

View Source
const MaxZoomSize int = 10

MaxZoomSize is the minimum font size

View Source
const MinCharspace int = -30

MinCharspace is the minimum character space

View Source
const MinHorizontalscaling int = 10

MinHorizontalscaling is the minimum horizontal scaling

View Source
const MinMagnificationFactor int = 8

MinMagnificationFactor is the minimum magnification factor

View Source
const MinPageHeight int = 3

MinPageHeight is the mimimum page height

View Source
const MinPageSize int = 3

MinPageSize is the minimum page size

View Source
const MinPageWidth int = 3

MinPageWidth the mimimum page width

View Source
const MinWordspace int = -30

MinWordspace is the minimum word space

View Source
const MiterJoin int = 0

MiterJoin is line join style

View Source
const Noerror int = 0

Noerror no error value for libharu

View Source
const Ok int = 0

Ok is no error value for libharu

View Source
const PageLandscape int = 1

PageLandscape is orientation

View Source
const PageLayoutOneColumn int = 1

PageLayoutOneColumn is page layout style

View Source
const PageLayoutSingle int = 0

PageLayoutSingle is page layout style

View Source
const PageLayoutTwoColumnLeft int = 2

PageLayoutTwoColumnLeft is page layout style

View Source
const PageLayoutTwoColumnRight int = 3

PageLayoutTwoColumnRight is page layout style

View Source
const PageLayoutTwoPageLeft int = 4

PageLayoutTwoPageLeft is page layout style

View Source
const PageLayoutTwoPageRight int = 5

PageLayoutTwoPageRight is page layout style

View Source
const PageModeFullScreen int = 3

PageModeFullScreen is page use mode

View Source
const PageModeUseNone int = 0

PageModeUseNone is page use mode

View Source
const PageModeUseOutline int = 1

PageModeUseOutline is page use mode

View Source
const PageModeUseThumbs int = 2

PageModeUseThumbs is page use mode

View Source
const PageNumStyleDecimal int = 0

PageNumStyleDecimal is page numeration style

View Source
const PageNumStyleLowerLetters int = 4

PageNumStyleLowerLetters is page numeration style

View Source
const PageNumStyleLowerRoman int = 2

PageNumStyleLowerRoman is page numeration style

View Source
const PageNumStyleUpperLetters int = 3

PageNumStyleUpperLetters is page numeration style

View Source
const PageNumStyleUpperRoman int = 1

PageNumStyleUpperRoman is page numeration style

View Source
const PagePortrait int = 0

PagePortrait is page orientation

View Source
const PageSizeA3 int = 2

PageSizeA3 is page size

View Source
const PageSizeA4 int = 3

PageSizeA4 is page size

View Source
const PageSizeA5 int = 4

PageSizeA5 is page size

View Source
const PageSizeB4 int = 5

PageSizeB4 is page size

View Source
const PageSizeB5 int = 6

PageSizeB5 is page size

View Source
const PageSizeComm10 int = 11

PageSizeComm10 is page size

View Source
const PageSizeExecutive int = 7

PageSizeExecutive is page size

View Source
const PageSizeLegal int = 1

PageSizeLegal is page size

View Source
const PageSizeLetter int = 0

PageSizeLetter is page size

View Source
const PageSizeUs4x6 int = 8

PageSizeUs4x6 is page size

View Source
const PageSizeUs4x8 int = 9

PageSizeUs4x8 is page size

View Source
const PageSizeUs5x7 int = 10

PageSizeUs5x7 is page size

View Source
const PrintScalingNone int = 32

PrintScalingNone is a viewer preference value

View Source
const ProjectingSquareEnd int = 2

ProjectingSquareEnd is line end style

View Source
const RoundEnd int = 1

RoundEnd is line end style

View Source
const RoundJoin int = 1

RoundJoin is line join style

View Source
const StampAnnotApproved int = 0

StampAnnotApproved is value indicating "APPROVED" stamp type

View Source
const StampAnnotAsis int = 3

StampAnnotAsis is value indicating "AS IS" stamp type

View Source
const StampAnnotConfidential int = 6

StampAnnotConfidential is value indicating "CONFIDENTIAL stamp type"

View Source
const StampAnnotDepartmental int = 9

StampAnnotDepartmental is value indicating "DEPARTMENTAL" stamp type

View Source
const StampAnnotDraft int = 12

StampAnnotDraft is value indicating "DRAFT" stamp type

View Source
const StampAnnotExperimental int = 1

StampAnnotExperimental is value indicating "EXPERIMENTAL" stamp type

View Source
const StampAnnotExpired int = 4

StampAnnotExpired is value indicating "EXPIRED" stamp type

View Source
const StampAnnotFinal int = 7

StampAnnotFinal is value indicating "FINAL" stamp type

View Source
const StampAnnotForComment int = 10

StampAnnotForComment is value indicating "FOR COMMENT" stamp type

View Source
const StampAnnotForPublicRelease int = 13

StampAnnotForPublicRelease is value indicating "FOR PUBLIC RELEASE" stamp type

View Source
const StampAnnotNotForPublicRelease int = 5

StampAnnotNotForPublicRelease is value indicating "NOT FOR PUBLIC RELEASE" stamp type

View Source
const StampAnnotNotapproved int = 2

StampAnnotNotapproved is value indicating "NOT APPROVED" stamp type

View Source
const StampAnnotSold int = 8

StampAnnotSold is value indicating "SOLD" stamp type

View Source
const StampAnnotTopSecret int = 11

StampAnnotTopSecret is value indicating "TOP SECRET" stamp type

View Source
const TextAlignCenter int = 2

TextAlignCenter is text alignment

View Source
const TextAlignJustify int = 3

TextAlignJustify is text alignment

View Source
const TextAlignLeft int = 0

TextAlignLeft is text alignment

View Source
const TextAlignRight int = 1

TextAlignRight is text alignment

View Source
const TextRenderClipping int = 7

TextRenderClipping is text rendering mode

View Source
const TextRenderFill int = 0

TextRenderFill is text rendering mode

View Source
const TextRenderFillClipping int = 4

TextRenderFillClipping is text rendering mode

View Source
const TextRenderFillStrokeClipping int = 6

TextRenderFillStrokeClipping is text rendering mode

View Source
const TextRenderFillThenStroke int = 2

TextRenderFillThenStroke is text rendering mode

View Source
const TextRenderInvisible int = 3

TextRenderInvisible is text rendering mode

View Source
const TextRenderStroke int = 1

TextRenderStroke is text rendering mode

View Source
const TextRenderStrokeClipping int = 5

TextRenderStrokeClipping is text rendering mode

View Source
const True int = 1

True is true value for libharu

View Source
const TsBarnDoorsHorizontalIn int = 5

TsBarnDoorsHorizontalIn is slide show mode

View Source
const TsBarnDoorsHorizontalOut int = 4

TsBarnDoorsHorizontalOut is slide show mode

View Source
const TsBarnDoorsVerticalIn int = 7

TsBarnDoorsVerticalIn is slide show mode

View Source
const TsBarnDoorsVerticalOut int = 6

TsBarnDoorsVerticalOut is slide show mode

View Source
const TsBlindsHorizontal int = 10

TsBlindsHorizontal is slide show mode

View Source
const TsBlindsVertical int = 11

TsBlindsVertical is slide show mode

View Source
const TsBoxIn int = 8

TsBoxIn is slide show mode

View Source
const TsBoxOut int = 8

TsBoxOut is slide show mode

View Source
const TsDissolve int = 12

TsDissolve is slide show mode

View Source
const TsGlitterDown int = 14

TsGlitterDown is slide show mode

View Source
const TsGlitterRight int = 13

TsGlitterRight is slide show mode

View Source
const TsGlitterTopLeftToBottomRight int = 15

TsGlitterTopLeftToBottomRight is slide show mode

View Source
const TsReplace int = 16

TsReplace is slide show mode

View Source
const TsWipeDown int = 3

TsWipeDown is slide show mode

View Source
const TsWipeLeft int = 2

TsWipeLeft is slide show mode

View Source
const TsWipeRight int = 0

TsWipeRight is slide show mode

View Source
const TsWipeUp int = 1

TsWipeUp is slide show mode

View Source
const WritingModeHorizontal int = 0

WritingModeHorizontal is encoding writing mode

View Source
const WritingModeVertical int = 1

WritingModeVertical is encoding writing mode

Variables

This section is empty.

Functions

func BufferToASCIZ

func BufferToASCIZ(text []byte) *C.char

BufferToASCIZ converts a byte buffer into zero-terminated ASCIZ string

The returned value must be freed using C.free

func CEncodedString

func CEncodedString(text string, encoding string) (*C.char, int, error)

CEncodedString creates an ASCIZ native string in specified encoding

The returned value must be freed using C.free

func Version

func Version() string

Version returns the version of the haru library

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

type DashMode struct {
	Pattern     [8]uint16
	NumPatterns uint
	Phase       uint
}

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) SetFit

func (dst *Destination) SetFit()

SetFit makes the destination to fit

func (*Destination) SetFitB

func (dst *Destination) SetFitB()

SetFitB ???

func (*Destination) SetFitBH

func (dst *Destination) SetFitBH(top float32)

SetFitBH ???

func (*Destination) SetFitBV

func (dst *Destination) SetFitBV(left float32)

SetFitBV ???

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

func (*Destination) SetXYZ

func (dst *Destination) SetXYZ(left float32, top float32, zoom float32)

SetXYZ sets destination coordinates

type Doc

type Doc struct {
	// contains filtered or unexported fields
}

The Doc structure represents the haru engine

func Create

func Create(panicAtError bool) Doc

Create initializes the haru engine

func (*Doc) AddPage

func (pdf *Doc) AddPage() Page

AddPage creates a new page and adds it after the last page of a document.

func (*Doc) AddPageLabel

func (pdf *Doc) AddPageLabel(pageNum uint, style int, firstPage uint, prefix string)

AddPageLabel adds a page labeling range for the document.

Use PageNumStyle* values as a value for style

func (*Doc) AttachFile

func (pdf *Doc) AttachFile(file string)

AttachFile attaches the file to the document

func (*Doc) Content

func (pdf *Doc) Content() []byte

Content gets the content of the document as a byte array

func (*Doc) CreateExtGState

func (pdf *Doc) CreateExtGState() ExtGState

CreateExtGState create G-state

func (*Doc) CreateJavaScript

func (v *Doc) CreateJavaScript(code string) JavaScript

CreateJavaScript creates JavaScript using the source code

func (*Doc) CreateOutline

func (pdf *Doc) CreateOutline(parent Outline, title string, encoder Encoder) Outline

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) Free

func (pdf *Doc) Free()

Free revokes a document object and all resources.

func (*Doc) FreeDoc

func (pdf *Doc) FreeDoc()

FreeDoc revokes the current document.

func (*Doc) GetCurrentEncoder

func (pdf *Doc) GetCurrentEncoder() Encoder

GetCurrentEncoder gets the handle of the current encoder of the document object.

func (*Doc) GetCurrentPage

func (pdf *Doc) GetCurrentPage() Page

GetCurrentPage gets current page of the document

func (*Doc) GetEncoder

func (pdf *Doc) GetEncoder(encodingName string) Encoder

GetEncoder gets the handle of an encoder object by specified encoding name.

func (*Doc) GetError

func (pdf *Doc) GetError() uint32

GetError gets last error code

The function is used to check error if panicIfError parameter is not set in New function

func (*Doc) GetErrorDetail

func (pdf *Doc) GetErrorDetail() uint32

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) GetFont

func (pdf *Doc) GetFont(fontName string, encodingName string) Font

GetFont gets font by the name and encoding

func (*Doc) GetInfoAttr

func (pdf *Doc) GetInfoAttr(attr int) string

GetInfoAttr gets info attribute value

The attr value may be any of INFO_* GetInfoAttr gets an attribute value from info dictionary.

func (*Doc) GetPageByIndex

func (pdf *Doc) GetPageByIndex(index uint) Page

GetPageByIndex gets page of the document by its index

func (*Doc) GetPageLayout

func (pdf *Doc) GetPageLayout() int

GetPageLayout returns the handle of current page object.

The function returns PageLayout* value

func (*Doc) GetPageMode

func (pdf *Doc) GetPageMode() int

GetPageMode returns page mode

The function return PageNode* value

func (*Doc) InsertPage

func (pdf *Doc) InsertPage(page Page) Page

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

func (v *Doc) LoadJpegImageFromFile(name string) Image

LoadJpegImageFromFile loads an external JPEG image file.

func (*Doc) LoadJpegImageFromMem

func (v *Doc) LoadJpegImageFromMem(raw []byte) Image

LoadJpegImageFromMem loads JPEG image from a buffer.

func (*Doc) LoadPngImageFromFile

func (v *Doc) LoadPngImageFromFile(name string) Image

LoadPngImageFromFile loads an external PNG image file.

func (*Doc) LoadPngImageFromFile2

func (v *Doc) LoadPngImageFromFile2(name string) Image

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

func (v *Doc) LoadPngImageFromMem(raw []byte) Image

LoadPngImageFromMem loads PNG image from a buffer.

func (*Doc) LoadTTFontFromFile

func (pdf *Doc) LoadTTFontFromFile(filename string, embedding bool) string

LoadTTFontFromFile loads a TrueType font from an external file and register it to a document object. (See "Fonts and Encodings")

func (*Doc) LoadTTFontFromFile2

func (pdf *Doc) LoadTTFontFromFile2(filename string, index uint, embedding bool) string

LoadTTFontFromFile2 loads a TrueType font from an TrueType collection file and register it to a document object. (See "Fonts and Encodings")

func (*Doc) LoadType1FontFromFile

func (pdf *Doc) LoadType1FontFromFile(afmFileName string, dataFileName string) string

LoadType1FontFromFile loads a Type1 font from an external file and registers it in the document object. (See "Fonts and Encodings")

func (*Doc) NewDoc

func (pdf *Doc) NewDoc()

NewDoc creates a new document.

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) Save

func (pdf *Doc) Save(name string)

Save saves the content of the document to the file specified

func (*Doc) SetCompressionMode

func (pdf *Doc) SetCompressionMode(mode int)

SetCompressionMode sets compression mode

The mode may be any Comp* value except CompMask SetCompressionMode set the mode of compression.

func (*Doc) SetCurrentEncoder

func (pdf *Doc) SetCurrentEncoder(encodingName string)

SetCurrentEncoder sets the current encoder for the document.

func (*Doc) SetEncryptionMode

func (pdf *Doc) SetEncryptionMode(mode int, keyLen uint)

SetEncryptionMode set the encryption mode.

use EncryptR2 or EncryptR3 as mode

func (*Doc) SetInfoAttrDate

func (pdf *Doc) SetInfoAttrDate(attr int, t time.Time)

SetInfoAttrDate sets data/time attribute value

Attribute code may be InfoCreationDate or InfoModDate

func (*Doc) SetInfoAttrString

func (pdf *Doc) SetInfoAttrString(attr int, value string)

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

func (pdf *Doc) SetPageLayout(layout int)

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

func (pdf *Doc) SetPageMode(mode int)

SetPageMode sets how the document should be displayed.

func (*Doc) SetPagesConfiguration

func (pdf *Doc) SetPagesConfiguration(pagePerPages uint)

SetPagesConfiguration sets count of pages per printed page

func (*Doc) SetPassword

func (pdf *Doc) SetPassword(ownerPassword string, userPassword string)

SetPassword sets a password for the document.

func (*Doc) SetPermission

func (pdf *Doc) SetPermission(permission uint)

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

func (encoder *Encoder) GetByteType(text string, index uint) int

GetByteType returns the type of byte in the text at position index.

func (*Encoder) GetType

func (encoder *Encoder) GetType() int

GetType gets the type of an encoding object.

func (*Encoder) GetUnicode

func (encoder *Encoder) GetUnicode(code uint16) uint16

GetUnicode converts a specified character code to unicode.

func (*Encoder) GetWritingMode

func (encoder *Encoder) GetWritingMode() int

GetWritingMode returns the writing mode for the encoding object.

Returns WritingMode* value

type ExData

type ExData struct {
	// contains filtered or unexported fields
}

ExData struct

type ExtGState

type ExtGState struct {
	// contains filtered or unexported fields
}

ExtGState struct

func (*ExtGState) SetAlphaFill

func (ext_gstate *ExtGState) SetAlphaFill(value float32)

SetAlphaFill sets alpha fill

func (*ExtGState) SetAlphaStroke

func (ext_gstate *ExtGState) SetAlphaStroke(value float32)

SetAlphaStroke sets alpha stroke

func (*ExtGState) SetBlendMode

func (ext_gstate *ExtGState) SetBlendMode(mode int)

SetBlendMode sets blending mode

Use Bm* value as the parameter

type Font

type Font struct {
	// contains filtered or unexported fields
}

Font struct keeps font reference

func (*Font) GetAscent

func (font *Font) GetAscent() int

GetAscent gets the vertical ascent of the font.

func (*Font) GetBBox

func (font *Font) GetBBox() Rect

GetBBox gets the bounding box of the font.

func (*Font) GetCapHeight

func (font *Font) GetCapHeight() uint

GetCapHeight gets the distance from the baseline of uppercase letters.

func (*Font) GetDescent

func (font *Font) GetDescent() int

GetDescent gets the vertical descent of the font.

func (*Font) GetEncodingName

func (font *Font) GetEncodingName() string

GetEncodingName gets the encoding name of the font.

func (*Font) GetFontName

func (font *Font) GetFontName() string

GetFontName gets the name of the font.

func (*Font) GetUnicodeWidth

func (font *Font) GetUnicodeWidth(code uint16) int

GetUnicodeWidth gets the width of a Unicode character in a specific font.

func (*Font) GetXHeight

func (font *Font) GetXHeight() uint

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

func (font *Font) TextWidth(text string, len uint) TextWidth

TextWidth gets total width of the text, number of characters, and number of words.

func (*Font) TextWidthEncoded

func (font *Font) TextWidthEncoded(text []byte, len uint) TextWidth

TextWidthEncoded gets total width of the text, number of characters, and number of words.

func (*Font) TextWidthEncoded1

func (font *Font) TextWidthEncoded1(text string, encoding string) (TextWidth, error)

TextWidthEncoded1 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) AddSMask

func (i *Image) AddSMask(mask *Image)

AddSMask sets mark using another image

func (*Image) BitsPerComponent

func (i *Image) BitsPerComponent() uint

BitsPerComponent returns bits per pixel of the image

func (*Image) GetColorSpace

func (i *Image) GetColorSpace() string

GetColorSpace gets color space of the image

func (*Image) Height

func (i *Image) Height() uint

Height returns height of the image

func (*Image) SetColorMask

func (i *Image) SetColorMask(redmin, redmax, greenmin, greenmax, bluemin, bluemax uint)

SetColorMask sets mask using color components

func (*Image) SetImageMask

func (i *Image) SetImageMask(mask *Image)

SetImageMask set image mask using another image as a mask

func (*Image) Size

func (i *Image) Size() (uint, uint)

Size returns width and height of the image

func (*Image) Width

func (i *Image) Width() uint

Width returns width of the image

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

func (*Outline) SetOpened

func (outline *Outline) SetOpened(opened bool)

SetOpened sets flag indicating whether the outline is opened

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

func (page *Page) Arc(x float32, y float32, ray float32, ang1 float32, ang2 float32)

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) Circle

func (page *Page) Circle(x float32, y float32, ray float32)

Circle appends a circle to the current path.

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

func (page *Page) Concat(a float32, b float32, c float32, d float32, x float32, y float32)

Concat concatenates the page's current transformation matrix and specified matrix.

func (*Page) Create3DAnnot

func (page *Page) Create3DAnnot(rect Rect, tb bool, np bool, u3d U3D, ap Image) Annotation

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

func (page *Page) CreateStampAnnot(rect Rect, name int, text string, encoder Encoder) Annotation

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

func (page *Page) CurveTo(x1 float32, y1 float32, x2 float32, y2 float32, x3 float32, y3 float32)

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

func (page *Page) CurveTo2(x2 float32, y2 float32, x3 float32, y3 float32)

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

func (page *Page) CurveTo3(x1 float32, y1 float32, x3 float32, y3 float32)

CurveTo3 appends a Bezier curve to the current path using two specified points.

func (*Page) DrawImage

func (page *Page) DrawImage(image Image, x float32, y float32, width float32, height float32)

DrawImage shows an image in one operation.

func (*Page) Ellipse

func (page *Page) Ellipse(x float32, y float32, xray float32, yray float32)

Ellipse appends an ellipse to the current path.

func (*Page) EndPath

func (page *Page) EndPath()

EndPath ends the path object without filling or painting.

func (*Page) EndText

func (page *Page) EndText()

EndText ends a text object.

func (*Page) Eoclip

func (page *Page) Eoclip()

Eoclip ???

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

func (page *Page) GetCMYKFill() CMYKColor

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

func (page *Page) GetCMYKStroke() CMYKColor

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

func (page *Page) GetCharSpace() float32

GetCharSpace gets the current value of the page's character spacing.

func (*Page) GetCurrentFont

func (page *Page) GetCurrentFont() Font

GetCurrentFont gets the handle of the page's current font.

func (*Page) GetCurrentFontSize

func (page *Page) GetCurrentFontSize() float32

GetCurrentFontSize gets the size of the page's current font.

func (*Page) GetCurrentPos

func (page *Page) GetCurrentPos() Point

GetCurrentPos gets the current position for path painting.

func (*Page) GetCurrentTextPos

func (page *Page) GetCurrentTextPos() Point

GetCurrentTextPos gets the current position for text showing.

func (*Page) GetDash

func (page *Page) GetDash() DashMode

GetDash gets the current pattern of the page.

func (*Page) GetFillingColorSpace

func (page *Page) GetFillingColorSpace() int

GetFillingColorSpace returns the current value of the page's stroking color space.

The methgod return ColorSpace* value

func (*Page) GetFlat

func (page *Page) GetFlat() float32

GetFlat gets the current value of the page's flatness.

func (*Page) GetGMode

func (page *Page) GetGMode() uint16

GetGMode gets the current graphics mode.

func (*Page) GetGStateDepth

func (page *Page) GetGStateDepth() uint

GetGStateDepth returns the number of the page's graphics state stack.

func (*Page) GetGrayFill

func (page *Page) GetGrayFill() float32

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

func (page *Page) GetGrayStroke() float32

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) GetHeight

func (page *Page) GetHeight() float32

GetHeight gets the height of a page.

func (*Page) GetHorizontalScalling

func (page *Page) GetHorizontalScalling() float32

GetHorizontalScalling returns the current value of the page's horizontal scalling for text showing.

func (*Page) GetLineCap

func (page *Page) GetLineCap() int

GetLineCap gets the current line cap style of the page.

the method return Buttend, RoundEnd, ProjectingSquareEnd

func (*Page) GetLineJoin

func (page *Page) GetLineJoin() int

GetLineJoin gets the current line join style of the page.

the method return MiterJoin, RoundJoin or BevelJoin

func (*Page) GetLineWidth

func (page *Page) GetLineWidth() float32

GetLineWidth gets the current line width of the page.

func (*Page) GetMiterLimit

func (page *Page) GetMiterLimit() float32

GetMiterLimit gets the current value of the page's miter limit.

func (*Page) GetPageMMgr

func (page *Page) GetPageMMgr() MMgr

GetPageMMgr returns media manager object

func (*Page) GetRGBFill

func (page *Page) GetRGBFill() RGBColor

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

func (page *Page) GetRGBStroke() RGBColor

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

func (page *Page) GetStrokingColorSpace() int

GetStrokingColorSpace returns the current value of the page's stroking color space.

The methgod return ColorSpace* value

func (*Page) GetTextLeading

func (page *Page) GetTextLeading() float32

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

func (page *Page) GetTextRaise() float32

GetTextRaise returns text raise

func (*Page) GetTextRenderingMode

func (page *Page) GetTextRenderingMode() int

GetTextRenderingMode returns the current value of the page's text rendering mode.

The method returns TextRender* value

func (*Page) GetTextRise

func (page *Page) GetTextRise() float32

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) GetWidth

func (page *Page) GetWidth() float32

GetWidth gets the width of the page.

func (*Page) GetWordSpace

func (page *Page) GetWordSpace() float32

GetWordSpace returns the current value of the page's word spacing.

func (*Page) LineTo

func (page *Page) LineTo(x float32, y float32)

LineTo appends a path from the current point to the specified point.

func (*Page) MeasureText

func (page *Page) MeasureText(text string, width float32, wordwrap bool) (uint, float32)

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

func (page *Page) MeasureText2(text []byte, width float32, wordwrap bool) (uint, float32)

MeasureText2 measures the text size

func (*Page) MoveTextPos

func (page *Page) MoveTextPos(x float32, y float32)

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

func (page *Page) MoveTextPos2(x float32, y float32)

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

func (page *Page) MoveTo(x float32, y float32)

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) Rectangle

func (page *Page) Rectangle(x float32, y float32, width float32, height float32)

Rectangle appends a rectangle to the current path.

func (*Page) SetCMYKFill

func (page *Page) SetCMYKFill(c CMYKColor)

SetCMYKFill sets the filling color.

func (*Page) SetCMYKStroke

func (page *Page) SetCMYKStroke(c CMYKColor)

SetCMYKStroke sets the stroking color.

func (*Page) SetCharSpace

func (page *Page) SetCharSpace(value float32)

SetCharSpace sets the character spacing for text.

func (*Page) SetDash

func (page *Page) SetDash(mode DashMode)

SetDash sets the dash pattern for lines in the page.

func (*Page) SetExtGState

func (page *Page) SetExtGState(gstate ExtGState)

SetExtGState applies the graphics state to the page.

func (*Page) SetFlat

func (page *Page) SetFlat(flatness float32)

SetFlat sets flatness

func (*Page) SetFontAndSize

func (page *Page) SetFontAndSize(font Font, size float32)

SetFontAndSize sets the type of font and size leading.

func (*Page) SetGrayFill

func (page *Page) SetGrayFill(gray float32)

SetGrayFill sets the filling color.

func (*Page) SetGrayStroke

func (page *Page) SetGrayStroke(gray float32)

SetGrayStroke sets the stroking color.

func (*Page) SetHeight

func (page *Page) SetHeight(value float32)

SetHeight changes the height of a page.

func (*Page) SetHorizontalScalling

func (page *Page) SetHorizontalScalling(value float32)

SetHorizontalScalling sets the horizontal scalling (scaling) for text showing.

func (*Page) SetLineCap

func (page *Page) SetLineCap(lineCap int)

SetLineCap sets the shape to be used at the ends of lines.

Use ButtEnd, RoundEnd, ProjectingSquareEnd as cap style

func (*Page) SetLineJoin

func (page *Page) SetLineJoin(lineJoin int)

SetLineJoin Sets the line join style in the page.

Use MiterJoin, RoundJoin or BevelJoin as join style

func (*Page) SetLineWidth

func (page *Page) SetLineWidth(lineWidth float32)

SetLineWidth sets the width of the line used to stroke a path.

func (*Page) SetMiterLimit

func (page *Page) SetMiterLimit(miterLimit float32)

SetMiterLimit sets miter limit

func (*Page) SetRGBFill

func (page *Page) SetRGBFill(c RGBColor)

SetRGBFill sets the filling color.

func (*Page) SetRGBStroke

func (page *Page) SetRGBStroke(c RGBColor)

SetRGBStroke sets the stroking color.

func (*Page) SetRotate

func (page *Page) SetRotate(angle uint16)

SetRotate sets rotation angle of the page.

func (*Page) SetSize

func (page *Page) SetSize(size int, orientation int)

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

func (page *Page) SetSlideShow(slideShowType int, dispTime float32, transTime float32)

SetSlideShow configures the setting for slide transition of the page.

use Ts* as slideShowType

func (*Page) SetTextLeading

func (page *Page) SetTextLeading(value float32)

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

func (page *Page) SetTextRaise(value float32)

SetTextRaise sets the text raise

func (*Page) SetTextRenderingMode

func (page *Page) SetTextRenderingMode(mode int)

SetTextRenderingMode sets the text rendering mode.

Use TextRender* as a mode

func (*Page) SetTextRise

func (page *Page) SetTextRise(value float32)

SetTextRise moves the text position in vertical direction by

func (*Page) SetWidth

func (page *Page) SetWidth(value float32)

SetWidth changes the width of a page.

func (*Page) SetWordSpace

func (page *Page) SetWordSpace(value float32)

SetWordSpace sets the word spacing for text.

func (*Page) SetZoom

func (page *Page) SetZoom(zoom float32)

SetZoom sets default page zoom

func (*Page) ShowText

func (page *Page) ShowText(text string)

ShowText prints the text at the current position on the page.

func (*Page) ShowText1

func (page *Page) ShowText1(text string, encoding string) error

ShowText1 shows text at the current position

func (*Page) ShowText2

func (page *Page) ShowText2(text []byte)

ShowText2 shows the text at the specified position

func (*Page) ShowTextNextLine

func (page *Page) ShowTextNextLine(text string)

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

func (page *Page) ShowTextNextLine1(text string, encoding string) error

ShowTextNextLine1 shows text at the next line

func (*Page) ShowTextNextLine2

func (page *Page) ShowTextNextLine2(text []byte)

ShowTextNextLine2 shows the text at the next line

func (*Page) ShowTextNextLineEx

func (page *Page) ShowTextNextLineEx(wordSpace float32, charSpace float32, text string)

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

func (page *Page) ShowTextNextLineEx2(wordSpace float32, charSpace float32, text []byte)

ShowTextNextLineEx2 shows the text at the next line

func (*Page) Stroke

func (page *Page) Stroke()

Stroke paints the current path.

func (*Page) TextOut

func (page *Page) TextOut(xpos float32, ypos float32, text string)

TextOut prints the text on the specified position.

func (*Page) TextOut1

func (page *Page) TextOut1(xpos float32, ypos float32, text string, encoding string) error

TextOut1 writes the text

func (*Page) TextOut2

func (page *Page) TextOut2(xpos float32, ypos float32, text []byte)

TextOut2 writes the text at the specified position

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

func (page *Page) TextWidth(text string) float32

TextWidth gets the width of the text in current fontsize, character spacing and word spacing.

func (*Page) TextWidth1

func (page *Page) TextWidth1(text string, encoding string) (float32, error)

TextWidth1 measures the width of the text

func (*Page) TextWidth2

func (page *Page) TextWidth2(text []byte) float32

TextWidth2 measures the text width

type Point

type Point struct {
	X, Y float32
}

Point struct is used to store 2D point coordinates

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

type U3D

type U3D struct {
	// contains filtered or unexported fields
}

U3D struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL