Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P poppler
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 665
    • Issues 665
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 46
    • Merge requests 46
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poppler
  • poppler
  • Issues
  • #867
Closed
Open
Issue created Jan 06, 2020 by Saduk@Saduk

Tool Request: xml2pdf

Hello

I love the Poppler tools. However, they only extract data from a PDF document. There are tools for

PDF --> text

PDF --> html

PDF --> xml

PDF --> PS

PDF --> PNG

All this is great. But a very important conversion is missing.

XML --> PDF

I suggest a new tool: xml2pdf which takes as input

-- an XML file

-- the required font files

-- the required image files

with an XML format like this:

<?xml version="1.0" encoding="utf-8"?>
<xml2pdf>
	<meta>
		<Author>Jim Beam</Author>
		<Creator>Poppler 0.87</Creator>
		<CreationDate>2020-01-05T12:45:12Z</CreationDate>
		<ModDate>2020-01-08T18:12:47Z</ModDate>
                .....
	</meta>
	<fonts>
		<fontspec id="0" size="7" family="Arial,Bold" color="#000000" file="ArialBold.ttf" />
                .....
	</fonts>
	<page number="1" position="absolute" top="0" left="0" height="792" width="612">
		<image top="307" left="28.0" width="249.6" height="67.9" src="CopanyLogo.png" />
		<text top="127.3" left="474.9" width="87.1" height="15.6" font="0"><b>User Manual</b></text>
                .....
	</page>
	<outline>
		<item page="3">Manual</item>
		<item page="5">Introduction</item>
                .....
	</outline>
</xml2pdf>

putting ArialBold.ttf and CopanyLogo.png into the same folder as the XML file.

Edited Jan 06, 2020 by Saduk
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking