Giter VIP home page Giter VIP logo

pdf_examples's Introduction

PDF_examples

This project should collect various PDF examples files with various defects for testing purposes.

Stream_Length

This folder contains all PDF files where /Length key is broken (for example missing, incorrect length, etc.)

correct_length.pdf - This is just reference file with correct /Length and uncompressed /Contents stream under 2 0 obj.

correct_length_dl.pdf - This is the same file as in previous example but contains also correct /DL.

missing_length.pdf - This file missing /Length key and is uncompressed. In general this PDF file is not valid as it's hard to determine the correct size of stream. Even this fact, PDF processors may render content in some level but rendered page content may be incomplete or not shown at all.

missing_length_dl.pdf - This file missing /Length as in previous example but contains /DL key which points to decompressed size. As uncompressed streams have same /Length and /DL (encrypted file exception) this may helps some PDF processor to determine correct length of stream.

shorter_length.pdf - This file has /Length specified shorter that is in reality. Different PDF processors process this situation differently. Some shows part of content, some nothing depepnding how they try to correct the situation.

shorter_length_dl.pdf - This is the same file as previous example but contains /DL key with correct length.

zero_length.pdf - This file has /Length set as zero. This may lead to not render content.

zero_length_dl.pdf - This is the same file as in previous example but contains also correct /DL.

longer_length.pdf - This file has /Length value exceed real length of stream. As whole page operators are read this should render page normally but PDF processors may read more bytes which may cause some error.

longer_length_dl.pdf - This is the same file as in previous example but contains correct /DL.

pdf_examples's People

Contributors

dudasl avatar

Watchers

 avatar

pdf_examples's Issues

Longer /Length

Generate sample files for stream /Length that exceeds correct size of the data

Non-integer /Length

Generate sample files for /Length different from an integer (real number or non-number cos object) in streams

Zero /Length

Generate sample files for /Length 0 in streams

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.