summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2007-05-30 17:50:00 +0000
committerAlbert Astals Cid <aacid@kde.org>2007-05-30 17:50:00 +0000
commitd540c04268047fdd125ad932ca05c7553a97c0fe (patch)
treed20016cc74b5abc7485e76cfb792825b964c7dac
parentce414f2a36f4d97a3bddfd42baabdc1e34bf9321 (diff)
* utils/HtmlFonts.cc: Make pdftohtml not pollute stdout. Patch bypoppler-0.6.0.RC1
Nanning Buitenhuis <nanning@elvenkind.com> And some changes in glib/reference/tmpl
-rw-r--r--ChangeLog5
-rw-r--r--glib/reference/tmpl/poppler-document.sgml4
-rw-r--r--glib/reference/tmpl/poppler-enums.sgml150
-rw-r--r--glib/reference/tmpl/poppler-page.sgml5
-rw-r--r--glib/reference/tmpl/poppler-unused.sgml130
-rw-r--r--utils/HtmlFonts.cc2
6 files changed, 162 insertions, 134 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b6b7e17..c11a15fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-30 Albert Astals Cid <aacid@kde.org>
+
+ * utils/HtmlFonts.cc: Make pdftohtml not pollute stdout. Patch by
+ Nanning Buitenhuis <nanning@elvenkind.com>
+
2007-05-29 Kristian Høgsberg <krh@redhat.com>
* poppler/gen-unicode-tables.py: Add this script to fix distcheck.
diff --git a/glib/reference/tmpl/poppler-document.sgml b/glib/reference/tmpl/poppler-document.sgml
index 6d4d13fc..29f9209c 100644
--- a/glib/reference/tmpl/poppler-document.sgml
+++ b/glib/reference/tmpl/poppler-document.sgml
@@ -50,11 +50,15 @@ The #PopplerDocument is an object used to refer to a main document.
@POPPLER_FONT_TYPE_UNKNOWN:
@POPPLER_FONT_TYPE_TYPE1:
@POPPLER_FONT_TYPE_TYPE1C:
+@POPPLER_FONT_TYPE_TYPE1COT:
@POPPLER_FONT_TYPE_TYPE3:
@POPPLER_FONT_TYPE_TRUETYPE:
+@POPPLER_FONT_TYPE_TRUETYPEOT:
@POPPLER_FONT_TYPE_CID_TYPE0:
@POPPLER_FONT_TYPE_CID_TYPE0C:
+@POPPLER_FONT_TYPE_CID_TYPE0COT:
@POPPLER_FONT_TYPE_CID_TYPE2:
+@POPPLER_FONT_TYPE_CID_TYPE2OT:
<!-- ##### ENUM PopplerViewerPreferences ##### -->
<para>
diff --git a/glib/reference/tmpl/poppler-enums.sgml b/glib/reference/tmpl/poppler-enums.sgml
index f12dcb5e..df7b007a 100644
--- a/glib/reference/tmpl/poppler-enums.sgml
+++ b/glib/reference/tmpl/poppler-enums.sgml
@@ -17,3 +17,153 @@ poppler-enums
<!-- ##### SECTION Stability_Level ##### -->
+<!-- ##### MACRO POPPLER_TYPE_ACTION_TYPE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_action_type_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_DEST_TYPE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_dest_type_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_PAGE_LAYOUT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_page_layout_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_PAGE_MODE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_page_mode_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_FONT_TYPE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_font_type_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_VIEWER_PREFERENCES ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_viewer_preferences_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_PERMISSIONS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_permissions_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_ERROR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_error_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_ORIENTATION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_orientation_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### MACRO POPPLER_TYPE_BACKEND ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION poppler_backend_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
diff --git a/glib/reference/tmpl/poppler-page.sgml b/glib/reference/tmpl/poppler-page.sgml
index c0c2ff3a..e859e80d 100644
--- a/glib/reference/tmpl/poppler-page.sgml
+++ b/glib/reference/tmpl/poppler-page.sgml
@@ -134,11 +134,10 @@ Information about a page in a document
</para>
@page:
-@scale:
-@rotation:
-@pixbuf:
+@cairo:
@selection:
@old_selection:
+@style:
@glyph_color:
@background_color:
diff --git a/glib/reference/tmpl/poppler-unused.sgml b/glib/reference/tmpl/poppler-unused.sgml
index eb181cea..e69de29b 100644
--- a/glib/reference/tmpl/poppler-unused.sgml
+++ b/glib/reference/tmpl/poppler-unused.sgml
@@ -1,130 +0,0 @@
-<!-- ##### MACRO POPPLER_TYPE_ACTION_TYPE ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_BACKEND ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_DEST_TYPE ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_ERROR ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_FONT_TYPE ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_ORIENTATION ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_PAGE_LAYOUT ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_PAGE_MODE ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_PERMISSIONS ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### MACRO POPPLER_TYPE_VIEWER_PREFERENCES ##### -->
-<para>
-
-</para>
-
-
-<!-- ##### FUNCTION poppler_action_type_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_backend_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_dest_type_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_error_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_font_type_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_orientation_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_page_layout_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_page_mode_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_permissions_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-<!-- ##### FUNCTION poppler_viewer_preferences_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
diff --git a/utils/HtmlFonts.cc b/utils/HtmlFonts.cc
index e267c259..479c8229 100644
--- a/utils/HtmlFonts.cc
+++ b/utils/HtmlFonts.cc
@@ -36,7 +36,7 @@ HtmlFontColor::HtmlFontColor(GfxRGB rgb){
r=static_cast<int>(rgb.r/65535.0*255.0);
g=static_cast<int>(rgb.g/65535.0*255.0);
b=static_cast<int>(rgb.b/65535.0*255.0);
- if (!(Ok(r)&&Ok(b)&&Ok(g))) {printf("Error : Bad color %d %d %d\n", r, g, b);r=0;g=0;b=0;}
+ if (!(Ok(r)&&Ok(b)&&Ok(g)) && !globalParams->getErrQuiet()) {fprintf(stderr, "Error : Bad color (%d,%d,%d) reset to (0,0,0)\n", r, g, b);r=0;g=0;b=0;}
}
GooString *HtmlFontColor::convtoX(unsigned int xcol) const{