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

Error compress pdf

New Here ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

When I made the example give me this error "Error response received for the request: No se puede enviar contenido textual con este tipo de verbo."}

 

This is my code 

// Create an ExecutionContext using credentials and create a new operation instance.
ExecutionContext executionContext = ExecutionContext.Create(credentials);
CompressPDFOperation compressPDFOperation = CompressPDFOperation.CreateNew();

// Set operation input from a source file.
FileRef sourceFileRef = FileRef.CreateFromLocalFile(@"C:\\Users\\josec\\Desktop\\66ce2f72-9514-4aa8-ad65-41e98d360b37LotePolizas.pdf");
compressPDFOperation.SetInput(sourceFileRef);

// Build CompressPDF options from supported compression levels and set them into the operation
CompressPDFOptions compressPDFOptions = CompressPDFOptions.CompressPDFOptionsBuilder()
.WithCompressionLevel(CompressionLevel.LOW)
.Build();
compressPDFOperation.SetOptions(compressPDFOptions);


// Execute the operation.
FileRef result = compressPDFOperation.Execute(executionContext);

// Save the result to the specified location.
result.SaveAs(compressStream);

TOPICS
Bug , PDF Services API , REST APIs

Views

17

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation
Resources