Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Delete multiple pdf pages using adobe pdf tools api

New Here ,
Apr 25, 2021 Apr 25, 2021

Hi,

Can anyone tell me how can i delete multiple pages using adobe PDF tools api, currently i'm able to delete single page or by using page ranges.

But i want to delete multiple pages like i want to delete 2,5,8 page from a pdf, so i want to know how i will pass this to api.

 

Here is the link of documentation: https://documentcloud.adobe.com/document-services/index.html#post-pageManipulation

 

TOPICS
Document Generation API , General , How to , PDF Services API
284
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 30, 2021 Jun 30, 2021
LATEST

Hi @Sameer5C66 ,

 

Thanks a lot for trying out our product and provide your valuable feedback. The API supports deleting multiple pages in one go by providing multiple page ranges in pageRanges object. Please find the details Form Parameters in POST pageManipulation endpoint.

To solve your use case, please supply the page ranges in the below format -

"cpf:inputs": {
		"params": {
			"cpf:inline": {
				"pageActions": [{
					"pageAction": {
						"delete": {
							"pageRanges": [{
								"start": 2,
								"end": 2
							}, {
								"start": 5,
								"end": 5
							}, {
								"start": 8,
								"end": 8
							}]
						}
					}
				}]
			}
		},
		"documentIn": {
			"cpf:location": "InputFile0",
			"dc:format": "application/pdf"
		}
	}

 Hope this helps.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources