Issue #107: Add scanned pdf conversion to bitonal [enhancement]

This commit is contained in:
Jakub Melka 2023-11-11 17:33:32 +01:00
parent 881364f0a0
commit 908fb47af1
11 changed files with 467 additions and 1 deletions

View File

@ -47,6 +47,9 @@ add_library(Pdf4QtViewer SHARED
pdfsanitizedocumentdialog.ui
pdfsanitizedocumentdialog.cpp
pdfsanitizedocumentdialog.h
pdfcreatebitonaldocumentdialog.ui
pdfcreatebitonaldocumentdialog.cpp
pdfcreatebitonaldocumentdialog.h
pdf4qtviewer.qrc
)

View File

@ -102,5 +102,7 @@
<file>resources/book.svg</file>
<file>resources/wallet.svg</file>
<file>resources/web.svg</file>
<file>resources/create-bitonal-document.svg</file>
<file>resources/sanitize-document.svg</file>
</qresource>
</RCC>

View File

@ -0,0 +1,85 @@
// Copyright (C) 2023 Jakub Melka
//
// This file is part of PDF4QT.
//
// PDF4QT is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// with the written consent of the copyright owner, any later version.
//
// PDF4QT is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with PDF4QT. If not, see <https://www.gnu.org/licenses/>.
#include "pdfcreateBitonaldocumentdialog.h"
#include "ui_pdfcreateBitonaldocumentdialog.h"
#include "pdfwidgetutils.h"
#include "pdfdocumentwriter.h"
#include "pdfdbgheap.h"
#include <QCheckBox>
#include <QPushButton>
#include <QElapsedTimer>
#include <QtConcurrent/QtConcurrent>
namespace pdfviewer
{
PDFCreateBitonalDocumentDialog::PDFCreateBitonalDocumentDialog(const pdf::PDFDocument* document, QWidget* parent) :
QDialog(parent),
ui(new Ui::PDFCreateBitonalDocumentDialog),
m_document(document),
m_createBitonalDocumentButton(nullptr),
m_conversionInProgress(false),
m_processed(false)
{
ui->setupUi(this);
m_createBitonalDocumentButton = ui->buttonBox->addButton(tr("Process"), QDialogButtonBox::ActionRole);
connect(m_createBitonalDocumentButton, &QPushButton::clicked, this, &PDFCreateBitonalDocumentDialog::onCreateBitonalDocumentButtonClicked);
connect(ui->automaticThresholdRadioButton, &QRadioButton::clicked, this, &PDFCreateBitonalDocumentDialog::updateUi);
connect(ui->manualThresholdRadioButton, &QRadioButton::clicked, this, &PDFCreateBitonalDocumentDialog::updateUi);
pdf::PDFWidgetUtils::scaleWidget(this, QSize(640, 380));
updateUi();
pdf::PDFWidgetUtils::style(this);
}
PDFCreateBitonalDocumentDialog::~PDFCreateBitonalDocumentDialog()
{
Q_ASSERT(!m_conversionInProgress);
Q_ASSERT(!m_future.isRunning());
delete ui;
}
void PDFCreateBitonalDocumentDialog::createBitonalDocument()
{
}
void PDFCreateBitonalDocumentDialog::onCreateBitonalDocumentButtonClicked()
{
Q_ASSERT(!m_conversionInProgress);
Q_ASSERT(!m_future.isRunning());
m_conversionInProgress = true;
m_future = QtConcurrent::run([this]() { createBitonalDocument(); });
updateUi();
}
void PDFCreateBitonalDocumentDialog::updateUi()
{
ui->thresholdEditBox->setEnabled(ui->manualThresholdRadioButton->isChecked());
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(m_processed && !m_conversionInProgress);
ui->buttonBox->button(QDialogButtonBox::Cancel)->setEnabled(!m_conversionInProgress);
m_createBitonalDocumentButton->setEnabled(!m_conversionInProgress);
}
} // namespace pdfviewer

View File

@ -0,0 +1,61 @@
// Copyright (C) 2023 Jakub Melka
//
// This file is part of PDF4QT.
//
// PDF4QT is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// with the written consent of the copyright owner, any later version.
//
// PDF4QT is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with PDF4QT. If not, see <https://www.gnu.org/licenses/>.
#ifndef PDFCREATEBITONALDOCUMENTDIALOG_H
#define PDFCREATEBITONALDOCUMENTDIALOG_H
#include "pdfdocument.h"
#include <QDialog>
#include <QFuture>
namespace Ui
{
class PDFCreateBitonalDocumentDialog;
}
namespace pdfviewer
{
class PDFCreateBitonalDocumentDialog : public QDialog
{
Q_OBJECT
public:
explicit PDFCreateBitonalDocumentDialog(const pdf::PDFDocument* document, QWidget* parent);
virtual ~PDFCreateBitonalDocumentDialog() override;
pdf::PDFDocument takeBitonaldDocument() { return qMove(m_bitonalDocument); }
private:
void createBitonalDocument();
void onCreateBitonalDocumentButtonClicked();
void updateUi();
Ui::PDFCreateBitonalDocumentDialog* ui;
const pdf::PDFDocument* m_document;
QPushButton* m_createBitonalDocumentButton;
bool m_conversionInProgress;
bool m_processed;
QFuture<void> m_future;
pdf::PDFDocument m_bitonalDocument;
};
} // namespace pdfviewer
#endif // PDFCREATEBITONALDOCUMENTDIALOG_H

View File

@ -0,0 +1,158 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PDFCreateBitonalDocumentDialog</class>
<widget class="QDialog" name="PDFCreateBitonalDocumentDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>741</width>
<height>530</height>
</rect>
</property>
<property name="windowTitle">
<string>Create Bitonal Document</string>
</property>
<layout class="QGridLayout" name="gridLayout_2" rowstretch="0,0,1,0" columnstretch="1,1,1">
<item row="0" column="0" rowspan="3">
<widget class="QTreeWidget" name="imageTreeWidget">
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QGroupBox" name="createBitonalSettingsGroupBox">
<property name="title">
<string>Color to Bitonal Conversion Options</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QRadioButton" name="automaticThresholdRadioButton">
<property name="text">
<string>Automatic (Otsu's 1D method)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="thresholdEditBox">
<property name="maximum">
<number>255</number>
</property>
<property name="value">
<number>128</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="manualThresholdRadioButton">
<property name="text">
<string>User-Defined Intensity Threshold (0-255):</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="1" rowspan="2">
<widget class="QLabel" name="originalImageLabel">
<property name="palette">
<palette>
<active>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>240</red>
<green>240</green>
<blue>240</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
</widget>
</item>
<item row="1" column="2" rowspan="2">
<widget class="QLabel" name="convertedImageLabel">
<property name="palette">
<palette>
<active>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>240</red>
<green>240</green>
<blue>240</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -33,6 +33,7 @@
#include "pdfrendertoimagesdialog.h"
#include "pdfoptimizedocumentdialog.h"
#include "pdfsanitizedocumentdialog.h"
#include "pdfcreatebitonaldocumentdialog.h"
#include "pdfviewersettingsdialog.h"
#include "pdfaboutdialog.h"
#include "pdfrenderingerrorswidget.h"
@ -458,6 +459,10 @@ void PDFProgramController::initialize(Features features,
{
connect(action, &QAction::triggered, this, &PDFProgramController::onActionSanitizeTriggered);
}
if (QAction* action = m_actionManager->getAction(PDFActionManager::CreateBitonalDocument))
{
connect(action, &QAction::triggered, this, &PDFProgramController::onActionCreateBitonalDocumentTriggered);
}
if (QAction* action = m_actionManager->getAction(PDFActionManager::Encryption))
{
connect(action, &QAction::triggered, this, &PDFProgramController::onActionEncryptionTriggered);
@ -1249,6 +1254,18 @@ void PDFProgramController::onActionSanitizeTriggered()
}
}
void PDFProgramController::onActionCreateBitonalDocumentTriggered()
{
PDFCreateBitonalDocumentDialog dialog(m_pdfDocument.data(), m_mainWindow);
if (dialog.exec() == QDialog::Accepted)
{
pdf::PDFDocumentPointer pointer(new pdf::PDFDocument(dialog.takeBitonaldDocument()));
pdf::PDFModifiedDocument document(qMove(pointer), m_optionalContentActivity, pdf::PDFModifiedDocument::ModificationFlags(pdf::PDFModifiedDocument::Reset | pdf::PDFModifiedDocument::PreserveUndoRedo));
onDocumentModified(qMove(document));
}
}
void PDFProgramController::onActionEncryptionTriggered()
{
auto queryPassword = [this](bool* ok)
@ -1569,6 +1586,7 @@ void PDFProgramController::updateActionsAvailability()
m_actionManager->setEnabled(PDFActionManager::RenderToImages, hasValidDocument && canPrint);
m_actionManager->setEnabled(PDFActionManager::Optimize, hasValidDocument);
m_actionManager->setEnabled(PDFActionManager::Sanitize, hasValidDocument);
m_actionManager->setEnabled(PDFActionManager::CreateBitonalDocument, hasValidDocument);
m_actionManager->setEnabled(PDFActionManager::Encryption, hasValidDocument);
m_actionManager->setEnabled(PDFActionManager::Save, hasValidDocument);
m_actionManager->setEnabled(PDFActionManager::SaveAs, hasValidDocument);

View File

@ -109,6 +109,7 @@ public:
RenderToImages,
Optimize,
Sanitize,
CreateBitonalDocument,
Encryption,
FitPage,
FitWidth,
@ -337,6 +338,7 @@ private:
void onActionRenderToImagesTriggered();
void onActionOptimizeTriggered();
void onActionSanitizeTriggered();
void onActionCreateBitonalDocumentTriggered();
void onActionEncryptionTriggered();
void onActionFitPageTriggered();
void onActionFitWidthTriggered();

View File

@ -164,6 +164,7 @@ PDFViewerMainWindow::PDFViewerMainWindow(QWidget* parent) :
m_actionManager->setAction(PDFActionManager::RenderToImages, ui->actionRender_to_Images);
m_actionManager->setAction(PDFActionManager::Optimize, ui->actionOptimize);
m_actionManager->setAction(PDFActionManager::Sanitize, ui->actionSanitize);
m_actionManager->setAction(PDFActionManager::CreateBitonalDocument, ui->actionCreateBitonalDocument);
m_actionManager->setAction(PDFActionManager::Encryption, ui->actionEncryption);
m_actionManager->setAction(PDFActionManager::FitPage, ui->actionFitPage);
m_actionManager->setAction(PDFActionManager::FitWidth, ui->actionFitWidth);

View File

@ -144,8 +144,9 @@
<addaction name="separator"/>
<addaction name="actionEncryption"/>
<addaction name="actionOptimize"/>
<addaction name="actionSanitize"/>
<addaction name="separator"/>
<addaction name="actionSanitize"/>
<addaction name="actionCreateBitonalDocument"/>
</widget>
<widget class="QMenu" name="menuInsert">
<property name="title">
@ -952,6 +953,10 @@
</property>
</action>
<action name="actionSanitize">
<property name="icon">
<iconset resource="pdf4qtviewer.qrc">
<normaloff>:/resources/sanitize-document.svg</normaloff>:/resources/sanitize-document.svg</iconset>
</property>
<property name="text">
<string>Sanitize...</string>
</property>
@ -979,6 +984,21 @@
<string>Become a Sponsor</string>
</property>
</action>
<action name="actionCreateBitonalDocument">
<property name="icon">
<iconset resource="pdf4qtviewer.qrc">
<normaloff>:/resources/create-bitonal-document.svg</normaloff>:/resources/create-bitonal-document.svg</iconset>
</property>
<property name="text">
<string>Create Bitonal Document...</string>
</property>
<property name="toolTip">
<string>Create Bitonal Document</string>
</property>
<property name="statusTip">
<string>Convert the colored images to monochromatic to create a bitonal document.</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg4518"
width="1024"
height="1024"
viewBox="0 0 1024 1024"
sodipodi:docname="create-bitonal-document.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata4524">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs4522" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="3840"
inkscape:window-height="2035"
id="namedview4520"
showgrid="false"
inkscape:zoom="0.60697936"
inkscape:cx="-446.16507"
inkscape:cy="382.76742"
inkscape:window-x="-13"
inkscape:window-y="-13"
inkscape:window-maximized="1"
inkscape:current-layer="svg4518" />
<path
style="fill:#000000"
d="M 275,840.34984 C 239.39425,836.75303 210.93791,812.8012 200.68906,777.80196 198.55083,770.5 198.55083,770.5 198.26782,555 197.98481,339.5 197.98481,339.5 244.79539,292.5 270.54121,266.65 294.58068,242.6875 298.21644,239.25 304.82689,233 304.82689,233 439.41345,233 574,233 574,233 574,221.46788 c 0,-16.44964 3.6815,-23.54063 14.00146,-26.96836 7.72363,-2.56538 166.06628,-1.78035 170.88594,0.84721 8.98764,4.89986 12.06104,11.45552 12.09064,25.78973 0.022,10.63645 0.022,10.63645 4.27196,11.27967 22.89593,3.46521 48.18401,25.82601 56.14594,49.64663 4.76595,14.25883 4.67352,8.89106 4.38132,254.43724 -0.27726,233 -0.27726,233 -2.52142,241 -8.4023,29.95265 -31.42147,52.75955 -61.25584,60.69096 -8.5,2.25971 -8.5,2.25971 -251,2.38607 -133.375,0.0695 -244.075,-0.0327 -246,-0.22719 z m 490,-33.00821 c 17.35762,-4.79398 29.59742,-17.00765 37.37332,-37.29353 2.45292,-6.39921 3.99366,-453.89194 1.61667,-469.5481 -2.19986,-14.48955 -11.11357,-27.00001 -23.80071,-33.40445 C 770.66408,262.28724 771,261.9069 771,277.5 c 0,13.5 0,13.5 2.50822,13.5 3.73544,0 3.51498,470.65192 -0.22373,477.64255 -2.80216,5.23949 -9.12708,10.69411 -14.14293,12.19689 -7.53442,2.25737 -482.68052,1.55749 -487.64156,-0.71828 -4.8754,-2.23649 -8.98945,-6.26636 -11.85053,-11.60805 C 257.5,764.5 257.5,764.5 257,611.82303 c -0.5,-152.67696 -0.5,-152.67696 -2.60453,-155.5 -6.68903,-8.97271 -19.53324,-8.87451 -23.83093,0.1822 -2.88554,6.08083 -1.86962,307.89446 1.06214,315.54287 9.47687,24.72341 24.94287,35.64473 52.37332,36.98343 31.24799,1.525 475.00462,-0.034 481,-1.6899 z M 549.50613,723.48462 C 608.29522,716.62845 656.6189,689.18053 711.59979,631.41516 732.35953,609.60405 733.33491,607.60888 726.75,600.42502 723.5,596.8794 723.5,596.8794 689,596.29093 644.2412,595.52747 647.84972,594.56637 628.66971,612.35947 609.134,630.48256 596.22209,639.42823 578.0973,647.39723 532.63362,667.38645 474.23364,660.41077 448.62945,631.93275 443.99057,626.7732 436,615.4135 436,613.97823 c 0,-0.43662 10.76768,-0.94784 23.92819,-1.13604 26.87027,-0.38426 27.63895,-0.58383 31.40218,-8.15256 3.58151,-7.20326 4.07279,-6.58299 -40.68105,-51.36331 -45.57366,-45.60064 -44.92894,-45.0974 -53.07665,-41.42973 -2.79718,1.25915 -17.00264,14.63777 -45.35847,42.71836 C 310.92841,595.5 310.92841,595.5 310.9642,599.79966 311.06369,611.7495 314.27432,613 344.85582,613 c 24.05355,0 24.05355,0 24.68861,3.75 11.84266,69.93128 91.32462,117.07174 179.9617,106.73462 z M 646,537.43405 c 1.375,-0.70689 20.56475,-19.43124 42.64389,-41.60966 43.1112,-43.30505 42.94206,-43.09292 39.99159,-50.15438 C 726.01639,439.40165 724.11249,439 697.01828,439 c -18.40336,0 -24.16717,-0.29472 -24.44633,-1.25 -9.26076,-31.69033 -18.68029,-48.38717 -36.78802,-65.2096 C 592.55321,332.3782 529.03396,319.07899 464.12597,336.59985 411.6213,350.77263 366.32483,384.72873 314.85436,448.5 300.0098,466.89222 299,468.53606 299,474.30906 c 0,11.09459 3.46247,11.98038 45,11.51218 36.66276,-0.41325 30.61063,2.50744 59.45867,-28.69406 C 432.87399,425.31213 454.76264,409.35438 481,400.59627 521.997,386.91134 567.04829,394.54425 592.5745,419.5 598.55894,425.3507 607,436.44042 607,438.45196 607,438.75338 596.17765,439 582.95034,439 c -27.05976,0 -28.96721,0.4028 -31.58582,6.67001 -3.18128,7.61388 -6.48857,3.63459 54.90397,66.05974 29.31079,29.80378 30.39419,30.50468 39.73151,25.7043 z M 315.53668,388.3328 c 7.07205,-2.40969 13.91868,-9.53856 15.27685,-15.90662 0.57488,-2.69541 0.9427,-5.00328 0.81738,-5.1286 -0.17754,-0.17754 -93.38778,-0.48534 -100.88091,-0.33313 -1.56316,0.0317 -1.75,1.26338 -1.75,11.53555 0,11.5 0,11.5 40.82186,11.5 35.48238,0 41.46186,-0.21807 45.71482,-1.6672 z M 722.42901,343.20507 C 740,324.91015 740,324.91015 740,274.95507 740,225 740,225 704.5,225 669,225 669,225 669,275.50741 c 0,50.50741 0,50.50741 16.75,68.49574 9.2125,9.89358 17.28055,17.87774 17.92901,17.74259 0.64845,-0.13516 9.08595,-8.47846 18.75,-18.54067 z M 303.08795,311.75 c 0.0484,-12.7875 0.28877,-25.3875 0.53421,-28 0.28494,-3.03296 0.0525,-4.75 -0.64315,-4.75 -0.59917,0 -13.77706,12.58712 -29.2842,27.97138 C 245.5,334.94277 245.5,334.94277 274.25,334.97138 303,335 303,335 303.08795,311.75 Z m 334.9119,-51.91821 c 8e-5,-17.41752 0.27329,-32.38002 0.60714,-33.25 C 639.14591,225.17739 637.29548,225 622.10699,225 605,225 605,225 605,232.95078 c 0,15.23051 -3.66246,23.69246 -12.2366,28.27206 C 588.5,263.5 588.5,263.5 461.89019,263.76495 c -126.60982,0.26496 -126.60982,0.26496 -127.31515,13.24008 -0.38794,7.13632 -0.39208,13.48198 -0.009,14.10148 0.5128,0.82972 40.55932,1.02984 152.065,0.75992 C 637.9997,291.5 637.9997,291.5 637.99985,259.83179 Z"
id="path4528"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg815"
width="1365.3333"
height="1365.3333"
viewBox="0 0 1365.3333 1365.3333"
sodipodi:docname="sanitize-document.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata821">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs819" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="3840"
inkscape:window-height="2035"
id="namedview817"
showgrid="false"
inkscape:zoom="1.2875977"
inkscape:cx="599.95446"
inkscape:cy="638.7656"
inkscape:window-x="-13"
inkscape:window-y="-13"
inkscape:window-maximized="1"
inkscape:current-layer="svg815" />
<path
style="fill:#000000;stroke-width:2.26666641"
d="m 387.36867,1277.0958 c -134.74112,-6.3339 -223.92939,-127.5348 -186.88279,-253.9613 2.61829,-8.9352 81.10843,-168.81275 189.74083,-386.48532 L 575.50199,265.40319 v -25.42066 c 0,-30.86119 -3.26752,-38.59602 -25.22362,-59.70922 l -14.44304,-13.88857 v -40.68299 c 0,-39.5947 0.14025,-40.81479 5.24608,-45.611425 l 5.2461,-4.928436 h 137.65694 137.65693 l 5.56363,5.563641 c 5.47354,5.473524 5.56364,6.191706 5.56364,44.349 0,43.44888 0.17136,42.84788 -16.79031,58.8895 -22.31805,21.10751 -29.43769,53.99586 -18.64558,86.13118 3.78004,11.25575 128.14738,260.13291 302.99304,606.33332 77.9276,154.29927 77.828,154.03857 77.9911,203.99997 0.2108,64.6021 -25.4795,117.0637 -75.9494,155.094 -42.3468,31.9091 -67.2713,39.1595 -138.13219,40.181 -65.07981,0.9382 -561.06001,2.1354 -576.86664,1.3923 z m 631.26663,-64.6954 c 73.7251,-22.3868 116.4342,-93.2836 98.4209,-163.378 -2.1609,-8.4086 -24.0529,-54.34464 -55.2482,-115.92721 -28.418,-56.1 -80.99471,-160.13998 -116.83706,-231.19998 -177.29757,-351.505 -180.34082,-357.35442 -191.97081,-368.9844 -37.54993,-37.54993 -98.8371,-36.4393 -137.77309,2.49668 -12.81461,12.81462 -17.65225,22.08365 -158.23695,303.18655 -79.76,159.48231 -157.26426,313.99023 -172.23171,343.35093 -20.88167,40.96233 -28.13608,57.52993 -31.17868,71.20573 -17.32063,77.853 39.11789,153.964 120.18897,162.0827 39.28608,3.9342 631.14343,1.334 644.86663,-2.833 z m -693.59997,-94.0183 c 0,-1.3567 358.6382,-718.07058 360.02855,-719.49231 1.06676,-1.09085 357.52872,705.58291 362.47012,718.58461 1.217,3.2023 -219.68984,0.9452 -222.72121,-2.2756 -1.57205,-1.6703 -21.7094,-33.1269 -44.74965,-69.9036 -57.03289,-91.03543 -87.59202,-138.81969 -91.05936,-142.38643 -3.1057,-3.19471 -7.52053,3.30381 -101.62185,149.58433 l -41.81274,64.9978 -110.26692,0.7488 c -60.64682,0.4119 -110.26694,0.476 -110.26694,0.1425 z"
id="path825"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB