diff options
author | tagoh <tagoh> | 2006-09-07 06:20:07 +0000 |
---|---|---|
committer | tagoh <tagoh> | 2006-09-07 06:20:07 +0000 |
commit | 8e25f8a0b4112f22c2b0f8f581968bb891317a18 (patch) | |
tree | 86697295e812075c376d2722f2b12fd89cfb8d70 /src/test_libpaps.c | |
parent | 59f3048538e01f160f14a46a40ed37c4588d227b (diff) | |
download | paps-8e25f8a0b4112f22c2b0f8f581968bb891317a18.tar.gz paps-8e25f8a0b4112f22c2b0f8f581968bb891317a18.tar.xz paps-8e25f8a0b4112f22c2b0f8f581968bb891317a18.zip |
2006-09-07 Akira TAGOH <at@gclab.org>
* src/paps.c (_paps_arg_lpi_cb): new function.
(_paps_arg_cpi_cb): new function.
(main): added --lpi and --cpi option. (#1472021)
(split_text_into_paragraphs): need to adjust the layout to avoid
the cutting off after scaling with LPI/CPI parameters.
(split_paragraphs_into_lines): figure out the scaling.
(output_pages): likewise.
(draw_line_to_page, draw_page_header_line_to_page): modified to give
the scaling according to LPI/CPI to libpaps.
* src/libpaps.c (paps_set_scale): new function.
(paps_new, paps_layout_to_postscript_strdup)
(paps_layout_line_to_postscript_strdup, add_postscript_prologue)
(add_line_to_postscript, draw_contour, draw_bezier_outline): modified
to output the PostScript file with any scaling.
Diffstat (limited to 'src/test_libpaps.c')
-rw-r--r-- | src/test_libpaps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test_libpaps.c b/src/test_libpaps.c index c293d4b..89c8ae6 100644 --- a/src/test_libpaps.c +++ b/src/test_libpaps.c @@ -83,6 +83,7 @@ int main(int argc, char*argv[]) ps_layout = paps_layout_to_postscript_strdup(paps, 0, 0, + 1.0, 1.0, layout); g_string_append_printf(ps_text, "gsave\n" @@ -110,6 +111,7 @@ int main(int argc, char*argv[]) ); ps_layout = paps_layout_to_postscript_strdup(paps, 0, 0, + 1.0, 1.0, layout); g_string_append_printf(ps_text, "gsave\n" |