Commit a274d357 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Merge branch 'release/0.3.5'

parents 8158d098 c39ff4b6
project('zathura-pdf-mupdf', 'c',
version: '0.3.4',
version: '0.3.5',
meson_version: '>=0.43',
default_options: 'c_std=c11'
)
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include <mupdf/fitz.h>
#include <mupdf/pdf.h>
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include <glib.h>
#include <girara/datastructures.h>
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include <girara/datastructures.h>
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include <glib.h>
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include "plugin.h"
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include "plugin.h"
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#ifndef PDF_H
#define PDF_H
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include <glib.h>
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#define N_SEARCH_RESULTS 512
......@@ -39,7 +39,7 @@ pdf_page_search_text(zathura_page_t* page, void* data, const char* text, zathura
mupdf_page_extract_text(mupdf_document, mupdf_page);
}
fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, sizeof(fz_quad));
fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad);
int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
text, hit_bbox, N_SEARCH_RESULTS);
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include <mupdf/pdf.h>
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#include "utils.h"
......
/* See LICENSE file for license and copyright information */
/* SPDX-License-Identifier: Zlib */
#ifndef UTILS_H
#define UTILS_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment