Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Jan 9, 2025
1 parent 58767e2 commit 7c48145
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ then optimize the processes that power the core of your business.
| FileCabinets/Upload | Create a Data Record & Upload File || - |
| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog || - |
| FileCabinets/Upload | Append a Single PDF to a Document || - |
| FileCabinets/Upload | Replace a PDF Document Section | | - |
| FileCabinets/Upload | Replace a PDF Document Section | | |
| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id || - |
| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search || - |
| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id || - |
Expand Down
12 changes: 12 additions & 0 deletions docs/File Cabinets/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,15 @@ $response = $connector->send(
)
)->dto();
```

#### Replace A PDF Document Section
```php
use CodebarAg\DocuWare\Requests\FileCabinets\Upload\ReplaceAPDFDocumentSection;

$response = $this->connector->send(new ReplaceAPDFDocumentSection(
fileCabinetId: $fileCabinetId,
sectionId: $documentWithSections->sections->first()->id,
fileContent: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-3.pdf'),
fileName: 'test-3.pdf',
))->dto();
```

0 comments on commit 7c48145

Please sign in to comment.