jSelector - Pick an element to exclusively render with a jQuery selector string.

BackgroundTransparent - Make the background transparent for PNG images.

Status

File

Size

Examples

pageTrap is a web service that converts a URL or HTML to a PDF or an Image. It quickly and accurately renders HTML to your chosen format and returns the result to you.

Some practical examples of what pageTrap can be used for are:

Easily generate PDF reports; newsletters; catalogues; etc.

Produce redistributable PDF documents

Capture preview images of webpages

Preserve live page states

You may wish to use pageTrap via the simple tool on this page, or if you're a developer you can achieve large-scale operations for your website or application using the buttons below or through our API.

pageTrap's API is very simple. You just make a request to one of these two endpoints:

http://pagetrap.com/api/image/

or

http://pagetrap.com/api/pdf/

The API endpoints support both http: and https: protocols.

Make POST requests with the below parameters as your data.

These parameters are available only to members (users of an API Key).

However URLHTMLKeyJSON are free and will work without an API Key.

Parameter Name

Type

Options

Description

Modes

Base Options

URL

String

N/A

URL to convert.

PDF, Image

HTML

String

N/A

HTML to convert.

PDF, Image

Key

String

N/A

User Identifier Key.

PDF, Image

JSON

Boolean

N/A

Return a JSON object containing a url to the pdf on success.

PDF, Image

Advanced Options

FileName

String

N/A

Desired output filename.

PDF, Image

Delay

Unit

N/A

Wait N milliseconds for possible javascript to run.

PDF, Image

NoImages

Boolean

N/A

Don't render the images

PDF, Image

Zoom

Float

N/A

Set the zoom factor of the source (1.0 means 100%).

PDF, Image

PDF Options

PageSize

Enum

A0; A1; A2; A3; A4; A5; A6; Letter; Legal; Tabloid; Executive; DLE

Size of output page

PDF

Orientation

Enum

Portrait; Landscape

Portrait or Landscape

PDF

NoBackground

Boolean

N/A

Don't render the background

PDF

MarginTop

Unit

N/A

Top margin in millimetres

PDF

MarginBottom

Unit

N/A

Bottom margin in millimetres

PDF

MarginLeft

Unit

N/A

Left margin in millimetres

PDF

MarginRight

Unit

N/A

Right margin in millimetres

PDF

Grayscale

Boolean

N/A

Whether you want to render your PDF in grayscale

PDF

PrintMedia

Boolean

N/A

Use print media-type style instead of screen.

PDF

Title

String

N/A

The title of the generated PDF document.

PDF

NoBookmarks

Boolean

N/A

Create PDF without bookmarks.

PDF

HeaderURL

String

N/A

URL of header content.

PDF

HeaderSpace

Unit

N/A

Space between header and content in mm.

PDF

FooterURL

String

N/A

URL of footer content.

PDF

FooterSpace

Unit

N/A

Space between footer and content in mm.

PDF

Image Options

ImageFormat

Enum

jpg; png

Format to output the image.

Image

ImageWidth

Unit

N/A

Attempt to output an image of the specified width.

Image

ImageHeight

Unit

N/A

Attempt to output an image of the specified height.

Image

jSelector

String

N/A

Pick an element to exclusively render with a jQuery selector string.

Image

BackgroundTransparent

Boolean

N/A

Make the background transparent for PNG images.

Image

If you do not use the JSON parameter in your request, then pageTrap will return the resultant file in its response.

If you do use JSON a successful request will return a JSON result containing a path to the result.

The string-pairs returned look like this:

{
"path":"https://pagetrap.com/Out/d4pagetrap_com.JPG", /*will remain on server for 24 hours*/
"timetaken":"3306", /*milliseconds*/
"filename":"pagetrap_com.JPG", /*friendly filename, may be different to path's filename*/
"filesize":"763553", /*bytes*/
"creditsused":"2" /*only returned if an API Key is used*/
}

Possible response codes:

Code

Meaning

Description

200

Success

501

Unavailable

If POST method was not used; Or if API paths used incorrectly.

500

Error

The reason will be written to the page in plain text.

429

Deny

The reason will be written to the page in plain text.

402

No Credit

If the user's account associated with the used API Key has insufficient credits remaining.

408

Timeout

403

Bad Inputs

Invalid parameter inputs. The reason will be written to the page in plain text.

Membership

Using pageTrap is free, however access to many additional conversion options is unavailable and the conversions will have a small pageTrap logo on them. Become a member to unlock these features.

When you become a member of pageTrap you will receive an API Key and 25 free credits allowing you to fully utilize the service, be that with the tool at the top of this page, on your own website or application through our API, or however you wish. It also means you can make use of many additional parameters to control the format and remove the pageTrap branding from the output. 1 credit is subtracted from your account for each 0.5MB in a conversion, rounded up.

Sign up now or login via Facebook or Google to receive 25 free credits.

Login to your account

FAQ

Yes it's free! But your resultant PDF and Image files will have a pageTrap logo on them. In addition to that, free users (non-member) do not have access to the advanced conversion options/parameters.

How do I remove the pageTrap logo from the results, or how do I gain access to the advanced Member Options?

Become a member! When you become a member you receive 25 free credits with which you can utilize the advanced options. This also means the pageTrap logo will not be there.

What is 1 credit equivalent to?

When you become a member (which is free to do) you receive 25 free credits. Each credit is equal to a conversion of a maximum size of 0.5MB. If a conversion is greater than 0.5MB then it'll cost you 2 credits. If it's greater than 1MB then it'll cost you 3 credits, and so on.

What is the API and what is my API Key?

When you become a member you are supplied with an API Key giving you the ability to use the Member Options as well as the Application Programming Interface of pageTrap. This allows users, especially developers, the ability to hook into pageTrap's service from their own website or application. Each member's API Key is unique and each use of it will cause a subtraction to your available credits. When you are using the Member Options, you are utilizing your API Key for each transaction.

What happens to my credits if I cancel a subscription?

When you cancel a subscription any outstanding credits you had for that payment cycle are maintained under your account as a 'static' purchase. The quantity will appear as an 'Extra' purchase. If you cancel an Unlimited subscription, then the same thing happens except it is calculated against 15000 credits.

How long do the files stay on the server?

When you convert using the JSON option (which is one of the free parameter options), then a link to the resultant file is returned. That file is kept on the server for 24 hours.

Can it convert any webpage?

pageTrap can convert any url that is exposed on the internet except frameset pages as well as ones that are protected with some sort of authentication. If you are using pageTrap for free, then you cannot perform a conversion greater than 10MB. As a member this limit is increased to 50MB.

Legal

Page Trap Terms and Conditions ("Agreement")

This Agreement was last modified on July 5, 2014.

Please read these Terms and Conditions ("Agreement", "Terms and Conditions") carefully before using the services ("the Service") of https://pageTrap.com ("the Site") operated by Page Trap (stylized as pageTrap) ("us", "we", or "our"). This Agreement sets forth the legally binding terms and conditions for use of the Site at https://pageTrap.com.

By accessing or using the Site in any manner, including, but not limited to, visiting or browsing the Site or contributing content or other materials to the Site, you agree to be bound by these Terms and Conditions.

Intellectual Property

The Site and its original content, features and functionality are owned by Page Trap and are protected by international copyright, trademark, patent, trade secret and other intellectual property or proprietary rights laws.

Membership

Users must provide a valid email address, plus any other information requested during sign-up to create an account for Page Trap and become a member.

Members are responsible for the security of their respective user account's and passwords. Page Trap will not be liable for any loss or damages, including but not limited to, financial loss or damage resulting from the account owner's failure to comply with the above mentioned security obligation.

Account owners are responsible for all activity that occurs within their account.

Account owners may not use the Service for any illegal purpose. Account owners cannot, in the use of the Service, violate any laws in the account owner's jurisdiction (including but not limited to copyright or trademark laws).

API

Users may access the Service via the Site or directly via our API (Application Program Interface). Any use of the API, including use of the API through a third party product that accesses Page Trap, is bound by these Terms of Service plus the following specific terms:

You agree that Page Trap shall not be liable for any direct or indirect damages, including but not limited to, damages for loss of profits, data or other intangible losses resulting from the account owner use of the API or third-party software that utilizes the API.

Abuse or excessively frequent requests to the API may result in the suspension of the offending user account's access to the API. Page Trap will determine abuse or excessive usage of the API. Page Trap will make a reasonable attempt via email to warn the account owner prior to suspension.

Page Trap reserves the right at any time to modify or discontinue, temporarily or permanently, an account's access to the API without cause or notice, which may result in the forfeiture and destruction of all information associated with the account.

Page Trap reserves the right to modify, expand upon, or reduce the capabilities of the Service at any time with or without notice.

Payments, Refunds

All fees are exclusive of all taxes, levies, or duties imposed by taxing authorities, and you shall be responsible for payment of all such taxes, levies, or duties.

There will be no refunds or credits for partial usage of service, or refunds for API tokens unused within an account.

Privacy

Page Trap will not disclose or keep unnecessary copies of submitted data and generated files. All data, excluding the account owner's necessary membership details and history, generated by Page Trap is removed from its servers approximately every 24 hours.

Page Trap may contact an account owner via email concerning the Service or the account at any time.

Page Trap will not sell an account owner's email address, or provide information regarding an account to any persons unless it is legally requested and required by law enforcement authorities.

Links To Other Sites

Our Site may contain links to third-party sites that are not owned or controlled by Page Trap.

Page Trap has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party sites or services. We strongly advise you to read the terms and conditions and privacy policy of any third-party site that you visit.

Disclaimer

Use of the Service is at the account owner own risk.

THE Service IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Page Trap BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS Service, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Changes To This Agreement

We reserve the right, at our sole discretion, to modify or replace these Terms and Conditions by posting the updated terms on the Site. Your continued use of the Site after any such changes constitutes the user's or the account owner's acceptance of the new Terms and Conditions.

Please review this Agreement periodically for changes. If you do not agree to any of this Agreement or any changes to this Agreement, do not use, access or continue to access the Site or discontinue any use of the Site immediately.

Contact Us

If you have any questions about this Agreement, please contact us:

admin at pagetrap.com

Privacy

Page Trap Privacy Policy

This privacy policy has been compiled to better serve those who are concerned with how their 'Personally identifiable information' (PII) is being used online. PII, as used in US privacy law and information security, is information that can be used on its own or with other information to identify, contact, or locate a single person, or to identify an individual in context. Please read our privacy policy carefully to get a clear understanding of how we collect, use, protect or otherwise handle your Personally Identifiable Information in accordance with our website.

What personal information do we collect from the people that visit our website or app?

When ordering or registering on our site, as appropriate, you may be asked to enter your name, email address, credit card information or other details to help you with your experience.

When do we collect information?

We collect information from you when you register on our site, fill out a form or enter information on our site.

How do we use your information?

We may use the information we collect from you when you register, make a purchase, surf the website, or use certain other site features to improve our website in order to better serve you.

How do we protect visitor information?

We do not use vulnerability scanning and/or scanning to PCI standards.

We use regular Malware Scanning.

Your personal information is contained behind secured networks and is only accessible by a limited number of persons who have special access rights to such systems, and are required to keep the information confidential. In addition, all sensitive/credit information you supply is encrypted via Secure Socket Layer (SSL) technology.

We implement a variety of security measures when a user places an order enters, submits, or accesses their information to maintain the safety of your personal information.

All transactions are processed through a gateway provider and are not stored or processed on our servers.

Do we use 'cookies'?

We do not use cookies for tracking purposes.

However, third party components such as Google AdSense Advertising may use cookies. These are subject to their own privacy policies

You can choose to have your computer warn you each time a cookie is being sent, or you can choose to turn off all cookies. You do this through your browser (like Internet Explorer) settings. Each browser is a little different, so look at your browser's Help menu to learn the correct way to modify your cookies.

If you disable cookies off, some features will be disabled that make your site experience more efficient and some of our services will not function properly.

However, you can still place orders .

Third Party Disclosure

We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information.

Third party links

Occasionally, at our discretion, we may include or offer third party products or services on our website. These third party sites have separate and independent privacy policies. We therefore have no responsibility or liability for the content and activities of these linked sites. Nonetheless, we seek to protect the integrity of our site and welcome any feedback about these sites.

Google

Google's advertising requirements can be summed up by Google's Advertising Principles. They are put in place to provide a positive experience for users. https://support.google.com/adwordspolicy/answer/1316548?hl=en

We use Google AdSense Advertising on our website.

Google, as a third party vendor, uses cookies to serve ads on our site. Google's use of the DART cookie enables it to serve ads to our users based on their visit to our site and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.

We have implemented the following:

• Google Display Network Impression Reporting

We along with third-party vendors, such as Google use first-party cookies (such as the Google Analytics cookies) and third-party cookies (such as the DoubleClick cookie) or other third-party identifiers together to compile data regarding user interactions with ad impressions, and other ad service functions as they relate to our website.

Users can set preferences for how Google advertises to you using the Google Ad Settings page. Alternatively, you can opt out by visiting the Network Advertising initiative opt out page or permanently using the Google Analytics Opt Out Browser add on.

California Online Privacy Protection Act

CalOPPA is the first state law in the nation to require commercial websites and online services to post a privacy policy. The law's reach stretches well beyond California to require a person or company in the United States (and conceivably the world) that operates websites collecting personally identifiable information from California consumers to post a conspicuous privacy policy on its website stating exactly the information being collected and those individuals with whom it is being shared, and to comply with this policy. - See more at: http://consumercal.org/california-online-privacy-protection-act-caloppa/#sthash.0FdRbT51.dpuf

According to CalOPPA we agree to the following:

Users can visit our site anonymously.

Once this privacy policy is created, we will add a link to it on our home page, or as a minimum on the first significant page after entering our website.

Our Privacy Policy link includes the word 'Privacy', and can be easily be found on the page specified above.

Users will be notified of any privacy policy changes:

• On our Privacy Policy Page

Users are able to change their personal information:

• By logging in to their account

How does our site handle do not track signals?

We honor do not track signals and do not track, plant cookies, or use advertising when a Do Not Track (DNT) browser mechanism is in place.

Does our site allow third party behavioral tracking?

It's also important to note that we allow third party behavioral tracking

COPPA (Children Online Privacy Protection Act)

When it comes to the collection of personal information from children under 13, the Children's Online Privacy Protection Act (COPPA) puts parents in control. The Federal Trade Commission, the nation's consumer protection agency, enforces the COPPA Rule, which spells out what operators of websites and online services must do to protect children's privacy and safety online.

We do not specifically market to children under 13.

Fair Information Practices

The Fair Information Practices Principles form the backbone of privacy law in the United States and the concepts they include have played a significant role in the development of data protection laws around the globe. Understanding the Fair Information Practice Principles and how they should be implemented is critical to comply with the various privacy laws that protect personal information.

In order to be in line with Fair Information Practices we will take the following responsive action, should a data breach occur:

We will notify the users via email

• Within 7 business days

We will notify the users via in site notification

• Within 7 business days

We also agree to the individual redress principle, which requires that individuals have a right to pursue legally enforceable rights against data collectors and processors who fail to adhere to the law. This principle requires not only that individuals have enforceable rights against data users, but also that individuals have recourse to courts or a government agency to investigate and/or prosecute non-compliance by data processors.

CAN SPAM Act

The CAN-SPAM Act is a law that sets the rules for commercial email, establishes requirements for commercial messages, gives recipients the right to have emails stopped from being sent to them, and spells out tough penalties for violations.