From nobody Mon Sep 16 20:20:31 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X6x9r0pwLz5WstH; Mon, 16 Sep 2024 20:20:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X6x9q3jB2z40pG; Mon, 16 Sep 2024 20:20:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726518031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mej3BkTFBKxTVwv5o5eKwEukE1qDayNMDGYKJJmgkZE=; b=EVV+AtBNrXnYercJ1IYLEaOSoOUxN55YvDm2sxuSXACkKyT1GwI5+mink4xpXpiMzapK7C SRoVcoo8QDoH+VZuhTPxRxjnetDbD6WJqiMocHpL5RZE56G97sMytG5qvmv461TxX7OqS7 RWIdVFEjUDbA3o5HuHmk+yR2Ne833DHEPV8NNZRLEJGhrKuKdBscWN0GkQSaL+mTCSm4sx 4O4Mu+TnbYd/Fxnkeoxht3bg4G9LmYc5e4lF8u1rGcfF1lQkrupNUvddn+yR/f5UYTtac0 aWoAUEvBzYKBrMTWybWj618TsYIWb+jzikXM+onJmuP3607hFb6lTANH+Jj7Xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726518031; a=rsa-sha256; cv=none; b=wDO7iYeCngTxXjAU163XVkd7iswLAGuf1Sni0ZF1UJUGOJj9XgCbvLAW1EvTAd37XnuULY UPWW7OJFGCuJ1Vzw3L0qAEWsKsGsv7638tiQhfbd1JJllgkV+Tdzf/o6DRqoiUEyvZTtJl cmaLRw2sUjPd7DrzoLdKoHccLlF7Vi3dhV29CVzhBlhxEi1+m7rN9GzJHRnLwNrH9LmNdE aOMpSIH8xOLGohr6RkmxptoL3rfwE10lsctHzn/bBLbUXYtpqfPwHodOjYMeXumoL1w133 kwordKXcXTO5Yw8MkGcgb1BSP8xeFGVnzUrlCguWLtb3ZuovfZvcWU42zD6irg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726518031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mej3BkTFBKxTVwv5o5eKwEukE1qDayNMDGYKJJmgkZE=; b=Eq93WPh/g4KgOy7m+wf9eQV3kQgbY9ZR836W2ghS6LWucZQRF/eALtLFGfOtss0XGenHsD 8wZlYKI6t0VSvRAvuBJgl2insPy5XN26Gy6Me5Vi8hh/kzesC1E63BeXJxES76OACPP1sx Ztf2dvkURTIawyPVsOLgxz8Z9ILg4+0OdnbYDxp5YiA+ntbZ/s6gImgM88iWYG4e4RMLSk bhZYkThc/kkGKY/aW32RMNaz7k3xT96b4sxMg223atA1E3OmBQOJhGULBq/3IZGgOtQ73J azH096mn0bY/6OKQ73uCGOfwoxI0f3XuL85YbSCFUD9Arq5LoQYoNq0S9/PzLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X6x9q3KSdz180v; Mon, 16 Sep 2024 20:20:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48GKKVen062875; Mon, 16 Sep 2024 20:20:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48GKKVo0062872; Mon, 16 Sep 2024 20:20:31 GMT (envelope-from git) Date: Mon, 16 Sep 2024 20:20:31 GMT Message-Id: <202409162020.48GKKVo0062872@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: df8d84bbba24 - main - print/extractpdfmark: New port: Extract page mode and named destinations from PDF List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: df8d84bbba243d13a1309d7f83b4d2fb50e3a64e Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=df8d84bbba243d13a1309d7f83b4d2fb50e3a64e commit df8d84bbba243d13a1309d7f83b4d2fb50e3a64e Author: Martin Neubauer AuthorDate: 2024-06-16 21:13:12 +0000 Commit: Robert Clausecker CommitDate: 2024-09-16 20:14:22 +0000 print/extractpdfmark: New port: Extract page mode and named destinations from PDF PDFmarks is a technique that accompanies PDF and that is used to store metadata such as author or title, but also structural information such as bookmarks or hyperlinks. When Ghostscript reads the main PDF generated by the TEX system with embedded PDF files and outputs the final PDF, the PDF page mode and name targets etc. are not preserved. Therefore, when you open the final PDF, it is not displayed correctly. Also, remote PDF links do not work correctly. This program is able to extract the page mode and named targets as PDFmark from PDF. In this way, you can obtain embedded PDF files that have kept this information. WWW: https://github.com/trueroad/extractpdfmark/ --- print/Makefile | 1 + print/extractpdfmark/Makefile | 24 ++++++++++++++++++++++++ print/extractpdfmark/distinfo | 3 +++ print/extractpdfmark/pkg-descr | 13 +++++++++++++ print/extractpdfmark/pkg-plist | 2 ++ 5 files changed, 43 insertions(+) diff --git a/print/Makefile b/print/Makefile index a4bc42432fc8..a2d7eff21cd0 100644 --- a/print/Makefile +++ b/print/Makefile @@ -43,6 +43,7 @@ SUBDIR += epson-inkjet-printer-escpr SUBDIR += epson-inkjet-printer-escpr2 SUBDIR += epsonepl + SUBDIR += extractpdfmark SUBDIR += fig2dev SUBDIR += flpsed SUBDIR += font-amsfonts diff --git a/print/extractpdfmark/Makefile b/print/extractpdfmark/Makefile new file mode 100644 index 000000000000..c046ffef7ef3 --- /dev/null +++ b/print/extractpdfmark/Makefile @@ -0,0 +1,24 @@ +PORTNAME= extractpdfmark +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.1 +CATEGORIES= print + +MAINTAINER= m.ne@gmx.net +COMMENT= Extract page mode and named destinations as PDFmark from PDF +WWW= https://github.com/trueroad/extractpdfmark/ + +LICENSE= GPLv3+ + +LIB_DEPENDS= libpoppler-cpp.so:graphics/poppler + +USES= autoreconf gettext-tools pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= trueroad + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-poppler=cpp + +post-patch: + @${TOUCH} ${WRKSRC}/config.rpath + +.include diff --git a/print/extractpdfmark/distinfo b/print/extractpdfmark/distinfo new file mode 100644 index 000000000000..031b5fa68209 --- /dev/null +++ b/print/extractpdfmark/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1718533626 +SHA256 (trueroad-extractpdfmark-v1.1.1_GH0.tar.gz) = 9dab715fdd4ce0c34a3d83899c4263a2ab59f649df0f221d335535d6c9546191 +SIZE (trueroad-extractpdfmark-v1.1.1_GH0.tar.gz) = 44875 diff --git a/print/extractpdfmark/pkg-descr b/print/extractpdfmark/pkg-descr new file mode 100644 index 000000000000..552a466490c5 --- /dev/null +++ b/print/extractpdfmark/pkg-descr @@ -0,0 +1,13 @@ +PDFmarks is a technique that accompanies PDF and that is used to +store metadata such as author or title, but also structural information +such as bookmarks or hyperlinks. + +When Ghostscript reads the main PDF generated by the TEX system +with embedded PDF files and outputs the final PDF, the PDF page +mode and name targets etc. are not preserved. Therefore, when you +open the final PDF, it is not displayed correctly. Also, remote PDF +links do not work correctly. + +This program is able to extract the page mode and named targets as +PDFmark from PDF. In this way, you can obtain embedded PDF files +that have kept this information. diff --git a/print/extractpdfmark/pkg-plist b/print/extractpdfmark/pkg-plist new file mode 100644 index 000000000000..6c138aae1fa4 --- /dev/null +++ b/print/extractpdfmark/pkg-plist @@ -0,0 +1,2 @@ +bin/extractpdfmark +share/man/man1/extractpdfmark.1.gz