Skip to main content

PDF to XLS - extract all pages into a single worksheet

PDF to XLS - extract all pages into a single worksheet

By default, PDF-to-Excel conversion places each PDF page in a separate worksheet. To combine the selected pages into one worksheet, set PageToWorksheet to false in the profiles parameter.

For a direct API request, add the following field to your existing JSON payload alongside the source url and other conversion settings. The value of profiles is a JSON string:

{
  "profiles": "{\"PageToWorksheet\":false}"
}

Zapier

In your PDF.co conversion action, paste the following object into the Custom Profiles field:

{"PageToWorksheet": false}

Make (formerly Integromat)

In your PDF.co conversion module, paste the following object into the Profiles or Custom Profiles field:

{"PageToWorksheet": false}

The code snippets below add this setting to an existing request-parameter dictionary or object named parameters.

C#

var profiles = @"{ ""PageToWorksheet"": false }";
parameters["profiles"] = profiles;

JavaScript

parameters.profiles = JSON.stringify({ PageToWorksheet: false });

PHP

$parameters["profiles"] = json_encode(["PageToWorksheet" => false]);

Python

import json
parameters["profiles"] = json.dumps({"PageToWorksheet": False})

For more details, see the Profiles documentation.

Did this answer your question?