summaryrefslogtreecommitdiffstats
path: root/src/extension/internal (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'select-page' of gitlab.com:bobqwatson/inkscapeMarc Jeanmougin2018-06-201-0/+2
|\
| * Add command-line option to select PDF pageJoe Rabinoff2018-06-191-0/+2
| | | | | | | | | | | | The optional argument "--pdf-page N" causes Inkscape to import page number N from the pdf document specified on the command line. This functionality is already available when importing via the GUI, but not when batch processing.
* | Replace typedef struct with struct in POD type declarations.Emmanuel Gil Peyrot2018-06-203-60/+49
| |
* | Replace functions with methods in SPColor.Emmanuel Gil Peyrot2018-06-198-32/+32
| |
* | Run clang-tidy’s modernize-redundant-void-arg pass.Emmanuel Gil Peyrot2018-06-1961-160/+160
| |
* | Run clang-tidy’s modernize-use-emplace pass.Emmanuel Gil Peyrot2018-06-181-1/+1
| | | | | | | | | | This reduces the boilerplate required to add a new element to a container.
* | Run clang-tidy’s modernize-use-bool-literals pass.Emmanuel Gil Peyrot2018-06-188-16/+16
|/ | | | | This makes it clearer whether an integer or a boolean has to be passed in this specific call.
* Update pdf-parser.cppMarc Jeanmougin2018-06-181-4/+0
|
* Run clang-tidy’s modernize-deprecated-headers pass.Emmanuel Gil Peyrot2018-06-1817-39/+39
| | | | This renames most C <*.h> includes into C++ <c*> includes.
* Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot2018-06-1812-16/+15
| | | | | This replaces empty constructors and destructors with the default keyword.
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-1850-573/+573
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Run clang-tidy’s modernize-use-override pass.Emmanuel Gil Peyrot2018-06-1840-210/+210
| | | | | This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
* Fix compilation with poppler 0.65.0Jan Palus2018-05-251-2/+1
| | | | | | replace unused includes with one that is actually used Signed-off-by: Jan Palus <atler@pld-linux.org>
* Fis maren improvements to embed/importJabier Arraiza2018-05-151-4/+4
|
* Fix bug embeding SVG as PNGJabier Arraiza2018-05-131-13/+12
|
* Allow embed on SVG importsJabier Arraiza2018-05-121-34/+44
|
* Fixes bugs: #1770760, #1770761, #1770763, #1770769 related to linked SVGJabier Arraiza2018-05-121-2/+1
|
* Add Maren improvements prepare to mergeJabiertxo Arraiza Cenoz2018-05-101-11/+11
|
* Allow link a SVG as imageJabiertxo Arraiza Cenoz2018-05-101-2/+103
|
* Reset old code to reaply fixedJabier Arraiza2018-05-092-1/+1
|
* fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271Jabier Arraiza2018-05-094-44/+4
|
* Start migrating 0.92 patch to masterJabier Arraiza2018-05-094-4/+44
|
* Fix typoMarc Jeanmougin2018-05-091-1/+1
|
* Merge branch 'reproducible-output' of gitlab.com:lamby/inkscapeMarc Jeanmougin2018-05-091-0/+43
|\
| * Make the command-line PDF output reproducible.Chris Lamb2018-03-181-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that inkscape generates output that is not reproducible: $ cp /usr/share/icons/gnome/scalable/places/debian-swirl.svg . $ inkscape -z debian-swirl.svg --export-width=25 --export-pdf=a.pdf $ sleep 1 $ inkscape -z debian-swirl.svg --export-width=25 --export-pdf=b.pdf $ sha1sum *.pdf bee6f300a8fce628e94febd0700fa97f90aa7b37 a.pdf 32f26595ec1957c7e714174e007c452f6cb5dd79 b.pdf This is affecting (at least) the "debian-astro" package: │ │ │ ├── ./usr/share/pixmaps/Debian-Astro-logo.pdf │ │ │ │ ├── pdftk {} output - uncompress │ │ │ │ │ @@ -357,15 +357,15 @@ │ │ │ │ │ << │ │ │ │ │ /Type /Catalog │ │ │ │ │ /Pages 1 0 R │ │ │ │ │ >> │ │ │ │ │ endobj │ │ │ │ │ 6 0 obj │ │ │ │ │ << │ │ │ │ │ -/CreationDate (D:20180315093948-12'00) │ │ │ │ │ +/CreationDate (D:20190418180346+14'00) │ │ │ │ │ /Producer (cairo 1.15.10 \(http://cairographics.org\)) │ │ │ │ │ >> │ │ │ │ │ endobj xref After applying this patch (which uses SOURCE_DATE_EPOCH [1]): $ export SOURCE_DATE_EPOCH=1521324801 $ […] $ sha1sum *.pdf 620bf8469600ab744ffa6fcc3eee4c6845f4f159 a.pdf 620bf8469600ab744ffa6fcc3eee4c6845f4f159 b.pdf This was originally filed in Debian as #893314 [2]. [0] https://reproducible-builds.org/ [1] https://reproducible-builds.org/specs/source-date-epoch/ [2] https://bugs.debian.org/893314 Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
* | Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-0433-248/+248
| | | | | | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* | Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-2933-248/+248
| |
* | moved libcroco, libuemf, libdepixelize to 3rdparty folderMarc Jeanmougin2018-04-2911-13/+13
| |
* | Fix compilation with poppler 0.64Eduard Braun2018-04-244-10/+9
|/
* Fixed more trivial typosluz.paz2018-03-121-1/+1
| | | Via `codespell` and `grep`
* New "Simple Blend" custom predefined filter effect (original idea by Ivan ↵Nicolas Dufour2018-02-041-0/+1
| | | | Louette). Patch 2/2
* New "Simple Blend" custom predefined filter effect (original idea by Ivan ↵Nicolas Dufour2018-02-041-0/+84
| | | | Louette). Patch 1/2
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-3037-129/+125
| | | | A lot of header clean-up.
* Fix handling of filenames of linked images in .odg exportEduard Braun2018-01-242-6/+1
| | | | | | | | | | | | | | | - export of .odg files was completely broken on Windows as "documentUri = Inkscape::URI(filename);" always failed (Windows paths are never valid URIs because of '\') - Linked images did not seem to be working on any OS (probably regression in 6f844ef457690c841b0be91d70b1e54b61c04812) I assume support for linked images is still sketchy but seems to work in the most common cases; support for embedded images seems to be non-existent, though. Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1654034
* PDF+LaTeX: fix line spacing, add basic support for line-heightEduard Braun2018-01-141-19/+28
| | | | | | | | | Replace "\stackrel" with "\tabular" to achieve constant line spacing. The former varies line spacing depending on the content of the line (i.e. an line containing "-" will have a very small height) Add basic support for line-height. (currently only the top level text element is considered)
* Misc. typosluz.paz2018-01-089-12/+12
| | | Found via `codespell`
* Show appropriate warning if non-existent export ID is specifiedEduard Braun2017-12-223-1/+10
| | | | | Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1739497
* PDF+LaTeX export: do not apply style to newlinesEduard Braun2017-12-051-25/+28
| | | | | | As the parser seems to wrap newlines into their own tspan which has the same style as the preceding tspan the latex-text renderer produced output like "\texbf{\\}" which broke compilation in LaTeX
* PDF+LaTeX export: Fix multiline textEduard Braun2017-12-051-13/+30
| | | | | | | | | | | Wrap text in "\shortstack" to allow for newlines using "\\". The output extension already produced those but they are ignored in a "\smash" environment. Patch by Michael Jäntsch Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/771959
* PDF+LaTeX export: Avoid printing empty boxesEduard Braun2017-12-051-0/+5
| | | | | | | | | | | | This also fixes an issue with multipage PDF output where an empty string would have been assumed to require emission of the previous page when in fact the CairoRenderer does not produce a new page in this case resulting in another facet of https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/1417470 Invisible characters might still cause this issue but it seems to be a very unlikely scenario and there's no way to know this without actually rendering the glyphs (which seems to be overkill here)
* CairoRenderer: print warning if rendering failedEduard Braun2017-12-041-1/+5
| | | | | | It happen often that the rendering was interrupted early but the final "cairo_surface_status" claims success which results in incomplete output but no user-visible warning.
* Proper fix for multipage PDF+Latex exportEduard Braun2017-12-041-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation [1] allowed to sandwich text between graphical objects by outputting multiple (partial) PDF pages which are then stacked in the final document to reveal the full image. However this code failed for clipped/masked/transparent objects as those are treated specially by the renderer resulting in missing pages in the output causing [2]. The attempt to workaround this issue which was committed in e4dea66a338824037b6c35b262aa8db4004b6581 (now reverted) fixed document creation in LaTeX by inserting blank pages but did not actually fix the issue with clipped/masked/transparent objects typically resulting in a single page with the full image and all text put on top. This commit resolves the underlying issue, making the former workaround unnecessary and allowing for proper overlaying of text and arbitrarily clipped/masked/transparent objects Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/771957 [1] - https://bugs.launchpad.net/inkscape/+bug/1417470 [2]
* Revert "Fix PDF+TeX output for text inside groups with clip/mask"Eduard Braun2017-12-042-33/+3
| | | | This reverts commit e4dea66a338824037b6c35b262aa8db4004b6581.
* Two fixes (should work on Linux now)Eduard Braun2017-11-211-3/+2
| | | | | | | | | | - do not call cairo_show_page as the GtkPrintOperation seems to do that internally (calling it manually will emit the current page, clear it, and the cleared page seems to be emitted in error later) - we can (and should) still call cairo_surface_destroy as it's doing reference counting internally (we increase the reference count in CairoRenderContext::setSurfaceTarget) and won't actually destroy anything until the count reaches zero
* Fix printing multiple copies of a documentEduard Braun2017-11-202-5/+8
| | | | | | | | | | | | | Previously only the first page was printed properly, all following pages were either blank or were not printed at all. This was caused by finishing/destroying the cairo surface of the cairo context associated with the GtkPrintContext used for printing which made it impossible to draw to it for any consecutive page Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/1733424 - https://bugs.launchpad.net/inkscape/+bug/490866
* Merge branch 'luzpaz/inkscape-typos' (!119)Eduard Braun2017-11-079-14/+14
|\
| * Misc. typosUnknown2017-11-079-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | Found using `codespell -q 3 -w --skip="*.svg,*.po,*.ts,./share/tutorials,./src/libavoid,./packaging/win32/languages,./man,./src/2geom" -I ../inkscape-whitelist.txt` whereby whitelist file contained: ``` dum iff glight substract te upto ```
* | Change abs to std::abs to fix warningsSimon Wells2017-11-042-5/+5
|/
* Merge branch 'smartpointer_refactor' of gitlab.com:jali/inkscapeMarc Jeanmougin2017-10-202-4/+2
|\
| * Replace boost::scoped_ptrJan Lingscheid2017-10-172-4/+2
| | | | | | | | | | This replaces all usage of boost::scoped_ptr with std::unique_ptr. Also removes the corresponding includes.