_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c21800 | train | // point outputs current point | {
"resource": ""
} | ||
c21801 | train | // GetAlpha returns the alpha blending channel, which consists of the
// alpha transparency value and the blend mode. See SetAlpha for more
// details. | {
"resource": ""
} | ||
c21802 | train | // getFontKey is used by AddFontFromReader and GetFontDesc | {
"resource": ""
} | ||
c21803 | train | // AddFontFromReader imports a TrueType, OpenType or Type1 font and makes it
// available using a reader that satisifies the io.Reader interface. See
// AddFont for details about familyStr and styleStr. | {
"resource": ""
} | ||
c21804 | train | // GetFontDesc returns the font descriptor, which can be used for
// example to find the baseline of a font. If familyStr is empty
// current font descriptor will be returned.
// See FontDescType for documentation about the font descriptor.
// See AddFont for details about familyStr and styleStr. | {
"resource": ""
} | ||
c21805 | train | // newLink adds a new clickable link on current page | {
"resource": ""
} | ||
c21806 | train | // Bookmark sets a bookmark that will be displayed in a sidebar outline. txtStr
// is the title of the bookmark. level specifies the level of the bookmark in
// the outline; 0 is the top level, 1 is just below, and so on. y specifies the
// vertical position of the bookmark destination in the current page; -1
// indica... | {
"resource": ""
} | ||
c21807 | train | // Cell is a simpler version of CellFormat with no fill, border, links or
// special alignment. | {
"resource": ""
} | ||
c21808 | train | // Cellf is a simpler printf-style version of CellFormat with no fill, border,
// links or special alignment. See documentation for the fmt package for
// details on fmtStr and args. | {
"resource": ""
} | ||
c21809 | train | // SplitLines splits text into several lines using the current font. Each line
// has its length limited to a maximum width given by w. This function can be
// used to determine the total height of wrapped text for vertical placement
// purposes.
//
// You can use MultiCell if you want to print a text on several lines ... | {
"resource": ""
} | ||
c21810 | train | // write outputs text in flowing mode | {
"resource": ""
} | ||
c21811 | train | // Writef is like Write but uses printf-style formatting. See the documentation
// for package fmt for more details on fmtStr and args. | {
"resource": ""
} | ||
c21812 | train | // Ln performs a line break. The current abscissa goes back to the left margin
// and the ordinate increases by the amount passed in parameter. A negative
// value of h indicates the height of the last printed cell.
//
// This method is demonstrated in the example for MultiCell. | {
"resource": ""
} | ||
c21813 | train | // RegisterImageReader registers an image, reading it from Reader r, adding it
// to the PDF file but not adding it to the page.
//
// This function is now deprecated in favor of RegisterImageOptionsReader | {
"resource": ""
} | ||
c21814 | train | // GetImageInfo returns information about the registered image specified by
// imageStr. If the image has not been registered, nil is returned. The
// internal error is not modified by this method. | {
"resource": ""
} | ||
c21815 | train | // SetX defines the abscissa of the current position. If the passed value is
// negative, it is relative to the right of the page. | {
"resource": ""
} | ||
c21816 | train | // SetY moves the current abscissa back to the left margin and sets the
// ordinate. If the passed value is negative, it is relative to the bottom of
// the page. | {
"resource": ""
} | ||
c21817 | train | // SetHomeXY is a convenience method that sets the current position to the left
// and top margins. | {
"resource": ""
} | ||
c21818 | train | // SetXY defines the abscissa and ordinate of the current position. If the
// passed values are negative, they are relative respectively to the right and
// bottom of the page. | {
"resource": ""
} | ||
c21819 | train | // SetProtection applies certain constraints on the finished PDF document.
//
// actionFlag is a bitflag that controls various document operations.
// CnProtectPrint allows the document to be printed. CnProtectModify allows a
// document to be modified by a PDF editor. CnProtectCopy allows text and
// images to be copi... | {
"resource": ""
} | ||
c21820 | train | // OutputAndClose sends the PDF document to the writer specified by w. This
// method will close both f and w, even if an error is detected and no document
// is produced. | {
"resource": ""
} | ||
c21821 | train | // OutputFileAndClose creates or truncates the file specified by fileStr and
// writes the PDF document to it. This method will close f and the newly
// written file, even if an error is detected and no document is produced.
//
// Most examples demonstrate the use of this method. | {
"resource": ""
} | ||
c21822 | train | // Output sends the PDF document to the writer specified by w. No output will
// take place if an error has occurred in the document generation process. w
// remains open after this function returns. After returning, f is in a closed
// state and its methods should not be called. | {
"resource": ""
} | ||
c21823 | train | // Load a font definition file from the given Reader | {
"resource": ""
} | ||
c21824 | train | // Escape special characters in strings | {
"resource": ""
} | ||
c21825 | train | // textstring formats a text string | {
"resource": ""
} | ||
c21826 | train | // parsejpg extracts info from io.Reader with JPEG data
// Thank you, Bruno Michel, for providing this code. | {
"resource": ""
} | ||
c21827 | train | // parsepng extracts info from a PNG data | {
"resource": ""
} | ||
c21828 | train | // newobj begins a new object | {
"resource": ""
} | ||
c21829 | train | // out; Add a line to the document | {
"resource": ""
} | ||
c21830 | train | // outbuf adds a buffered line to the document | {
"resource": ""
} | ||
c21831 | train | // outf adds a formatted line to the document | {
"resource": ""
} | ||
c21832 | train | // fileExist returns true if the specified normal file exists | {
"resource": ""
} | ||
c21833 | train | // fileSize returns the size of the specified file; ok will be false
// if the file does not exist or is not an ordinary file | {
"resource": ""
} | ||
c21834 | train | // bufferFromReader returns a new buffer populated with the contents of the specified Reader | {
"resource": ""
} | ||
c21835 | train | // slicesEqual returns true if the two specified float slices are equal | {
"resource": ""
} | ||
c21836 | train | // sliceCompress returns a zlib-compressed copy of the specified byte array | {
"resource": ""
} | ||
c21837 | train | // sliceUncompress returns an uncompressed copy of the specified zlib-compressed byte array | {
"resource": ""
} | ||
c21838 | train | // intIf returns a if cnd is true, otherwise b | {
"resource": ""
} | ||
c21839 | train | // strIf returns aStr if cnd is true, otherwise bStr | {
"resource": ""
} | ||
c21840 | train | // UnicodeTranslator returns a function that can be used to translate, where
// possible, utf-8 strings to a form that is compatible with the specified code
// page. The returned function accepts a string and returns a string.
//
// r is a reader that should read a buffer made up of content lines that
// pertain to the... | {
"resource": ""
} | ||
c21841 | train | // UnicodeTranslatorFromFile returns a function that can be used to translate,
// where possible, utf-8 strings to a form that is compatible with the
// specified code page. See UnicodeTranslator for more details.
//
// fileStr identifies a font descriptor file that maps glyph positions to names.
//
// If an error occu... | {
"resource": ""
} | ||
c21842 | train | // Transform moves a point by given X, Y offset | {
"resource": ""
} | ||
c21843 | train | // ScaleBy expands a size by a certain factor | {
"resource": ""
} | ||
c21844 | train | // ScaleToWidth adjusts the height of a size to match the given width | {
"resource": ""
} | ||
c21845 | train | // ScaleToHeight adjusts the width of a size to match the given height | {
"resource": ""
} | ||
c21846 | train | // CreateTemplate defines a new template using the current page size. | {
"resource": ""
} | ||
c21847 | train | // CreateTemplateCustom starts a template, using the given bounds. | {
"resource": ""
} | ||
c21848 | train | // CreateTpl creates a template not attached to any document | {
"resource": ""
} | ||
c21849 | train | // UseTemplate adds a template to the current page or another template,
// using the size and position at which it was originally written. | {
"resource": ""
} | ||
c21850 | train | // UseTemplateScaled adds a template to the current page or another template,
// using the given page coordinates. | {
"resource": ""
} | ||
c21851 | train | // putTemplates writes the templates to the PDF | {
"resource": ""
} | ||
c21852 | train | // sortTemplates puts templates in a suitable order based on dependices | {
"resource": ""
} | ||
c21853 | train | // templateChainDependencies is a recursive function for determining the full chain of template dependencies | {
"resource": ""
} | ||
c21854 | train | // AddSpotColor adds an ink-based CMYK color to the gofpdf instance and
// associates it with the specified name. The individual components specify
// percentages ranging from 0 to 100. Values above this are quietly capped to
// 100. An error occurs if the specified name is already associated with a
// color. | {
"resource": ""
} | ||
c21855 | train | // GetDrawSpotColor returns the most recently used spot color information for
// drawing. This will not be the current drawing color if some other color type
// such as RGB is active. If no spot color has been set for drawing, zero
// values are returned. | {
"resource": ""
} | ||
c21856 | train | // GetTextSpotColor returns the most recently used spot color information for
// text output. This will not be the current text color if some other color
// type such as RGB is active. If no spot color has been set for text, zero
// values are returned. | {
"resource": ""
} | ||
c21857 | train | // GetFillSpotColor returns the most recently used spot color information for
// fill output. This will not be the current fill color if some other color
// type such as RGB is active. If no fill spot color has been set, zero values
// are returned. | {
"resource": ""
} | ||
c21858 | train | // BeginLayer is called to begin adding content to the specified layer. All
// content added to the page between a call to BeginLayer and a call to
// EndLayer is added to the layer specified by id. See AddLayer for more
// details. | {
"resource": ""
} | ||
c21859 | train | // EndLayer is called to stop adding content to the currently active layer. See
// BeginLayer for more details. | {
"resource": ""
} | ||
c21860 | train | // GetUnscaledBarcodeDimensions returns the width and height of the
// unscaled barcode associated with the given code. | {
"resource": ""
} | ||
c21861 | train | // uniqueBarcodeName makes sure every barcode has a unique name for its
// dimensions. Scaling a barcode image results in quality loss, which could be
// a problem for barcode readers. | {
"resource": ""
} | ||
c21862 | train | // barcodeKey combines the code type and code value into a unique identifier for
// a barcode type. This is so that we can store several barcodes with the same
// code but different type in the barcodes map. | {
"resource": ""
} | ||
c21863 | train | // StateGet returns a variable that contains common state values. | {
"resource": ""
} | ||
c21864 | train | // Put sets the common state values contained in the state structure
// specified by st. | {
"resource": ""
} | ||
c21865 | train | // defaultFormatter returns the string form of val with precision decimal places. | {
"resource": ""
} | ||
c21866 | train | // XY converts dataX and dataY, specified in logical data units, to the X and Y
// position on the current page. | {
"resource": ""
} | ||
c21867 | train | // Pos returns the point, in page units, indicated by the relative positions
// xRel and yRel. These are values between 0 and 1. xRel specifies the relative
// position between the grid's left and right edges. yRel specifies the
// relative position between the grid's bottom and top edges. | {
"resource": ""
} | ||
c21868 | train | // X converts dataX, specified in logical data units, to the X position on the
// current page. | {
"resource": ""
} | ||
c21869 | train | // Y converts dataY, specified in logical data units, to the Y position on the
// current page. | {
"resource": ""
} | ||
c21870 | train | // XRange returns the minimum and maximum values for the current tickmark
// sequence. These correspond to the data values of the graph's left and right
// edges. | {
"resource": ""
} | ||
c21871 | train | // YRange returns the minimum and maximum values for the current tickmark
// sequence. These correspond to the data values of the graph's bottom and top
// edges. | {
"resource": ""
} | ||
c21872 | train | // HTMLBasicTokenize returns a list of HTML tags and literal elements. This is
// done with regular expressions, so the result is only marginally better than
// useless. | {
"resource": ""
} | ||
c21873 | train | // HTMLBasicNew returns an instance that facilitates writing basic HTML in the
// specified PDF file. | {
"resource": ""
} | ||
c21874 | train | // getInfoFromTrueType returns information from a TrueType font | {
"resource": ""
} | ||
c21875 | train | // makeFontEncoding builds differences from reference encoding | {
"resource": ""
} | ||
c21876 | train | // ID returns the global template identifier | {
"resource": ""
} | ||
c21877 | train | // Size gives the bounding dimensions of this template | {
"resource": ""
} | ||
c21878 | train | // FromPage creates a new template from a specific Page | {
"resource": ""
} | ||
c21879 | train | // FromPages creates a template slice with all the pages within a template. | {
"resource": ""
} | ||
c21880 | train | // Serialize turns a template into a byte string for later deserialization | {
"resource": ""
} | ||
c21881 | train | // DeserializeTemplate creaties a template from a previously serialized
// template | {
"resource": ""
} | ||
c21882 | train | // childrenImages returns the next layer of children images, it doesn't dig into
// children of children. Applies template namespace to keys to ensure
// no collisions. See UseTemplateScaled | {
"resource": ""
} | ||
c21883 | train | // childrensTemplates returns the next layer of children templates, it doesn't dig into
// children of children. | {
"resource": ""
} | ||
c21884 | train | // GobEncode encodes the receiving template into a byte buffer. Use GobDecode
// to decode the byte buffer back to a template. | {
"resource": ""
} | ||
c21885 | train | // GobDecode decodes the specified byte buffer into the receiving template. | {
"resource": ""
} | ||
c21886 | train | // setRoot assigns the relative path to the gofpdfDir directory based on current working
// directory | {
"resource": ""
} | ||
c21887 | train | // CompareBytes compares the bytes referred to by sl1 with those referred to by
// sl2. Nil is returned if the buffers are equal, otherwise an error. | {
"resource": ""
} | ||
c21888 | train | // ComparePDFs reads and compares the full contents of the two specified
// readers byte-for-byte. Nil is returned if the buffers are equal, otherwise
// an error. | {
"resource": ""
} | ||
c21889 | train | // ComparePDFFiles reads and compares the full contents of the two specified
// files byte-for-byte. Nil is returned if the file contents are equal, or if
// the second file is missing, otherwise an error. | {
"resource": ""
} | ||
c21890 | train | // GobEncode encodes the receiving image to a byte slice. | {
"resource": ""
} | ||
c21891 | train | // PointToUnitConvert is an alias for PointConvert. | {
"resource": ""
} | ||
c21892 | train | // Extent returns the width and height of the image in the units of the Fpdf
// object. | {
"resource": ""
} | ||
c21893 | train | // Width returns the width of the image in the units of the Fpdf object. | {
"resource": ""
} | ||
c21894 | train | // Height returns the height of the image in the units of the Fpdf object. | {
"resource": ""
} | ||
c21895 | train | // generateFontID generates a font Id from the font definition | {
"resource": ""
} | ||
c21896 | train | // TtfParse extracts various metrics from a TrueType font file. | {
"resource": ""
} | ||
c21897 | train | // niceNum returns a "nice" number approximately equal to x. The number is
// rounded if round is true, converted to its ceiling otherwise. | {
"resource": ""
} | ||
c21898 | train | // TickmarkPrecision returns an appropriate precision value for label
// formatting. | {
"resource": ""
} | ||
c21899 | train | // Tickmarks returns a slice of tickmarks appropriate for a chart axis and an
// appropriate precision for formatting purposes. The values min and max will
// be contained within the tickmark range. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.