Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
poppler
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 540
    • Issues 540
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 22
    • Merge Requests 22
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poppler
  • poppler
  • Merge Requests
  • !122

Closed
Opened Nov 24, 2018 by Greg Knight@lyngvi
  • Report abuse
Report abuse

pdftohtml: single-page HTML files using data-urls, stdout-capable

These changes add the command line argument -dataurls to the pdftohtml utility. When used with -s, this allows a user to write to a single HTML file while preserving imagery from the PDF. Images are stored in the HTML as data URLs (RFC 2937). The automatic squashing of the stdout flag based on -s was removed, as it works quite well and makes sense for this application.

In order to avoid extensive rework against ImgWriter and its friends, I am using the GLIBC-specific fopencookie method. Header-guards prevent this feature from being activated on Android or MinGW, where fopencookie is not available.

I tested against 0.70.1 and the master; the current master (8315a1234) is subject to a bug fixed in my branch goostring-fromint-fix (see other pull request).

Please let me know if any further information is needed.

Edited Nov 25, 2018 by Greg Knight

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://gitlab.freedesktop.org/lyngvi/poppler.git dataurls
git checkout -b lyngvi/poppler-dataurls FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff lyngvi/poppler-dataurls

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 82
  • Commits 24
  • Pipelines 20
  • Changes 12
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: poppler/poppler!122