#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <setjmp.h>
#include "grid_sheet.h"
#include "utils.h"
void
{
y = 0;
while (y < height) {
if (y % 10 == 0)
else {
}
if (y % 10 == 0 && y > 0) {
}
y += 5;
}
x = 0;
while (x < width) {
if (x % 10 == 0)
else {
}
if (x % 50 == 0 && x > 0) {
}
x += 5;
}
y = 0;
while (y < height) {
if (y % 10 == 0 && y > 0) {
char buf[12];
HPDF_snprintf (buf, 12, "%u", y);
}
y += 5;
}
x = 0;
while (x < width) {
if (x % 50 == 0 && x > 0) {
char buf[12];
HPDF_snprintf (buf, 12, "%u", x);
}
x += 5;
}
}
HPDF_Font HPDF_GetFont(HPDF_Doc pdf, const char *font_name, const char *encoding_name)
Get requested font object handle.
HPDF_STATUS HPDF_Page_SetLineWidth(HPDF_Page page, HPDF_REAL line_width)
Set width of the line used to stroke paths.
HPDF_STATUS HPDF_Page_Stroke(HPDF_Page page)
Paint current path.
HPDF_STATUS HPDF_Page_MoveTo(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Start new subpath and move current point for drawing path.
HPDF_STATUS HPDF_Page_SetFontAndSize(HPDF_Page page, HPDF_Font font, HPDF_REAL size)
Set the type of font and size leading.
HPDF_STATUS HPDF_Page_SetGrayFill(HPDF_Page page, HPDF_REAL value)
Set the filling color (Gray).
HPDF_STATUS HPDF_Page_LineTo(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Append path from current point to specified point.
HPDF_STATUS HPDF_Page_ShowText(HPDF_Page page, const char *text)
Put text at the current text position on the page.
HPDF_STATUS HPDF_Page_SetGrayStroke(HPDF_Page page, HPDF_REAL value)
Set stroking color (Gray).
HPDF_STATUS HPDF_Page_BeginText(HPDF_Page page)
Begin text object and set text position to (0, 0).
HPDF_STATUS HPDF_Page_EndText(HPDF_Page page)
Finish text object.
HPDF_STATUS HPDF_Page_MoveTextPos(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Change current text position using the specified offset values.
HPDF_REAL HPDF_Page_GetHeight(HPDF_Page page)
Get page height.
HPDF_REAL HPDF_Page_GetWidth(HPDF_Page page)
Get page width.
HPDF_REAL HPDF_Page_GetLineWidth(HPDF_Page page)
Get page current line width.
unsigned int HPDF_UINT
Definition: hpdf_types.h:45
float HPDF_REAL
Definition: hpdf_types.h:79
Definition: hpdf_objects.h:421
Definition: hpdf_doc.h:36