* Fix building with poppler 25.02.0 * Pass document antialias setting to make a bitmap copy * Fix Paste when SVG Mode is set to "new" * Refresh doc rsrc dialog after deleting objects * Fix PDF import w/ consecutive clippings * Batch export: swap is-file and missing-directory cases to intended use * Don't use std::regex for parsing page size * Cherry-Pick: Fix undo history dialog destruction * Fix file extension defaulting to WMF if unset * Avoid dangling window in app.preferences action * Fix copy+paste of cloned group * Fix modular grid drawing when Y axis is pointing up * Fix crash loading user palettes * Fix circle updates with unset attributes * Page numbers must have a range to be valid for 'all' * Distance to move needs to stay a double * Remove aggressive blind cleaning in path to stroke * Update the app data screenshots to 1.4 * Add double-click hint to guide statusbar tooltip * Fixes inbox#11133: restored missing parameters for perspective LPE. * Allow changing color of Asian patterns * Don't block NodeTool::selection_changed * Modernise some Node Tool constructs * Don't create a new document when closing StartScreen * Fix snap package: printing and print-preview (backport to 1.4.x) * Make comments available to translators * Labels for modifiers can be localised. * Collapse additional children in Commands Toolbar * Updated translations. OBS-URL: https://build.opensuse.org/package/show/graphics/inkscape?expand=0&rev=129
47 lines
2.0 KiB
Diff
47 lines
2.0 KiB
Diff
Index: inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-transition-api.h
|
|
===================================================================
|
|
--- inkscape-1.3.2_2023-11-25_091e20ef0f.orig/src/extension/internal/pdfinput/poppler-transition-api.h
|
|
+++ inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-transition-api.h
|
|
@@ -13,6 +13,15 @@
|
|
#define SEEN_POPPLER_TRANSITION_API_H
|
|
|
|
#include <glib/poppler-features.h>
|
|
+#include <poppler/UTF.h>
|
|
+
|
|
+#if POPPLER_CHECK_VERSION(24, 5, 0)
|
|
+#define _POPPLER_HAS_UNICODE_BOM(value) (hasUnicodeByteOrderMark(value->toStr()))
|
|
+#define _POPPLER_HAS_UNICODE_BOMLE(value) (hasUnicodeByteOrderMarkLE(value->toStr()))
|
|
+#else
|
|
+#define _POPPLER_HAS_UNICODE_BOM(value) (value->hasUnicodeMarker())
|
|
+#define _POPPLER_HAS_UNICODE_BOMLE(value) (value->hasUnicodeMarkerLE())
|
|
+#endif
|
|
|
|
#if POPPLER_CHECK_VERSION(22, 4, 0)
|
|
#define _POPPLER_FONTPTR_TO_GFX8(font_ptr) ((Gfx8BitFont *)font_ptr.get())
|
|
Index: inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-utils.cpp
|
|
===================================================================
|
|
--- inkscape-1.3.2_2023-11-25_091e20ef0f.orig/src/extension/internal/pdfinput/poppler-utils.cpp
|
|
+++ inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-utils.cpp
|
|
@@ -12,6 +12,8 @@
|
|
|
|
#include "poppler-utils.h"
|
|
|
|
+#include <poppler/UTF.h>
|
|
+
|
|
#include "2geom/affine.h"
|
|
#include "GfxFont.h"
|
|
#include "GfxState.h"
|
|
@@ -563,10 +565,10 @@ std::string getDictString(Dict *dict, co
|
|
*/
|
|
std::string getString(const GooString *value)
|
|
{
|
|
- if (value->hasUnicodeMarker()) {
|
|
+ if (_POPPLER_HAS_UNICODE_BOM(value)) {
|
|
return g_convert(value->getCString () + 2, value->getLength () - 2,
|
|
"UTF-8", "UTF-16BE", NULL, NULL, NULL);
|
|
- } else if (value->hasUnicodeMarkerLE()) {
|
|
+ } else if (_POPPLER_HAS_UNICODE_BOMLE(value)) {
|
|
return g_convert(value->getCString () + 2, value->getLength () - 2,
|
|
"UTF-8", "UTF-16LE", NULL, NULL, NULL);
|
|
}
|