Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6857159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:58:51+00:00 2026-05-27T01:58:51+00:00

Is there a way to check if a file has raster elements in it?

  • 0

Is there a way to check if a file has raster elements in it? I would be interested to do this for the .pdf, .eps and .ai formats.

If the file is only vector I am converting it to .svg and if it has some raster elements I have to convert it to .png file.

I am working in PHP but I can utilize any command line tools as well. For instance I am considering using Inkscape to do the actual conversion.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:58:52+00:00Added an answer on May 27, 2026 at 1:58 am

    No there is not.

    The following is a theoretical computer science proof for eps which proofs, that the asked property can not be computed.

    PostScript(ps) and also Encapsulated PostScript(eps) are turing complete programming language. In Theoretical Computer Science there exists proofs which say that certain properties of programs written in turing complete languages can not be computed. Such a property is for example, whether a given program ever terminates. So we know that there exists a PostScript Program where we can not tell whether it terminates. If we take this Program remove all raster objects from it and insert only a single raster object which will only be printed on the document if and only if the program terminates. We do this by inserting this raster printing step as last step on every program part which could lead to termination (directly before every quit command (if such a command exists) and at the end of the main). Now we have a PostScript Program for which we can not tell whether it includes printing a raster object or not. It indeed can not be told, since if we knew whether it does include printing it we also know whether it terminates and we already know, that we can not compute this property. q.e.d.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to check if a file has been opened by ReWrite
C++: Is there a way to check if a file has been opened for
Is there any way to check whether a file is locked without using a
Related to: Flex SDK 3.5 - Check file mimetype Is there a way to
Is there a way to check how much a flash file is (down)loaded to
Is there an easy way to check if a file is empty. Like if
Does there exist any way in .Net to check before opening if a file
Is there a way to check if a ValidationSummary control has its IsValid property
Is there any way to check id a file is being accessed or modified
Is there a better way to check if a file is not locked then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.