summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-page.c2
-rw-r--r--source/pdf/pdf-parse.c2
-rw-r--r--source/pdf/pdf-stream.c2
-rw-r--r--source/pdf/pdf-write.c8
-rw-r--r--source/pdf/pdf-xref.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c
index d2ec028b..44f652bd 100644
--- a/source/pdf/pdf-page.c
+++ b/source/pdf/pdf-page.c
@@ -502,7 +502,7 @@ pdf_page_obj_transform(fz_context *ctx, pdf_obj *pageobj, fz_rect *page_mediabox
rotate = 0;
/* Compute transform from fitz' page space (upper left page origin, y descending, 72 dpi)
- * to PDF user space (arbitary page origin, y ascending, UserUnit dpi). */
+ * to PDF user space (arbitrary page origin, y ascending, UserUnit dpi). */
/* Make left-handed and scale by UserUnit */
fz_scale(page_ctm, userunit, -userunit);
diff --git a/source/pdf/pdf-parse.c b/source/pdf/pdf-parse.c
index 5b77a466..665802ea 100644
--- a/source/pdf/pdf-parse.c
+++ b/source/pdf/pdf-parse.c
@@ -237,7 +237,7 @@ pdf_to_ucs2(fz_context *ctx, pdf_obj *src)
return dst;
}
-/* allow to convert to UCS-2 without the need for an fz_context */
+/* allow conversion to UCS-2 without the need for a fz_context */
/* (buffer must be at least (fz_to_str_len(src) + 1) * 2 bytes in size) */
void
pdf_to_ucs2_buf(fz_context *ctx, unsigned short *buffer, pdf_obj *src)
diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c
index 289f27da..d9b14405 100644
--- a/source/pdf/pdf-stream.c
+++ b/source/pdf/pdf-stream.c
@@ -513,7 +513,7 @@ can_reuse_buffer(fz_context *ctx, pdf_xref_entry *entry, fz_compression_params *
{
int len = pdf_array_len(ctx, f);
- /* Empty array of filters. It's uncompressed. We can cope. */
+ /* Empty array of filters. Its uncompressed. We can cope. */
if (len == 0)
return 1;
/* 1 filter is the most we can hope to cope with - if more,*/
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c
index 94379f4e..7602e0c9 100644
--- a/source/pdf/pdf-write.c
+++ b/source/pdf/pdf-write.c
@@ -246,7 +246,7 @@ page_objects_sort(fz_context *ctx, page_objects *po)
/* If both are in the page_objects, pick the larger one */
if (k < i-1 && po->object[k] < po->object[k+1])
k++;
- /* If j is bigger than k (i.e. both of it's children),
+ /* If j is bigger than k (i.e. both of its children),
* we're done */
if (po->object[j] > po->object[k])
break;
@@ -411,7 +411,7 @@ heap_sort(int *list, int n, const int *val, int (*ge)(int, int))
/* If both are in the page_objects, pick the larger one */
if (k < i-1 && ge(val[list[k+1]], val[list[k]]))
k++;
- /* If j is bigger than k (i.e. both of it's children),
+ /* If j is bigger than k (i.e. both of its children),
* we're done */
if (ge(val[list[j]], val[list[k]]))
break;
@@ -1610,7 +1610,7 @@ static fz_buffer *deflatebuf(fz_context *ctx, unsigned char *p, size_t n)
size_t cap;
if (n != (size_t)longN)
- fz_throw(ctx, FZ_ERROR_GENERIC, "Buffer to large to deflate");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "Buffer too large to deflate");
cap = compressBound(longN);
data = fz_malloc(ctx, cap);
@@ -3041,7 +3041,7 @@ void pdf_write_document(fz_context *ctx, pdf_document *doc, fz_output *out, pdf_
if (in_opts->do_incremental && in_opts->do_linear)
fz_throw(ctx, FZ_ERROR_GENERIC, "Can't do incremental writes with linearisation");
if (pdf_has_unsaved_sigs(ctx, doc))
- fz_throw(ctx, FZ_ERROR_GENERIC, "Can't write pdf that has unsaved sigs to an fz_output!");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "Can't write pdf that has unsaved sigs to a fz_output!");
prepare_for_save(ctx, doc, in_opts);
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 88182adf..739a5693 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -2496,7 +2496,7 @@ pdf_load_hints(fz_context *ctx, pdf_document *doc, int objnum)
fz_rethrow_if(ctx, FZ_ERROR_TRYLATER);
/* Don't try to load hints again */
doc->hints_loaded = 1;
- /* We won't use the linearized object any more. */
+ /* We won't use the linearized object anymore. */
doc->file_reading_linearly = 0;
/* Any other error becomes a TRYLATER */
fz_throw(ctx, FZ_ERROR_TRYLATER, "malformed hints object");