# tools.convert

Canonical URL: https://developers.iagenify.com/ar/sdk/workflows/steps/tools-convert/
Language: ar

`type: "tools.convert"`

يحول مستند بين النسق داخل سلسلة. الـ sub هو مؤكّد عند حفظ الـ oper.

Status: 1 credit · from and to required · the pair is validated

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `from` | string | مطلوب | مصدر الشكل. |
| `to` | string | مطلوب | الهدف **الـ s هو مؤكّد يعمل حفظ.** |
| `url` | string |  | اعثر على المصدر من هناك. |
| `content` | string |  | المصدر كنص. |
| `base64` | string |  | المصدر كما في (البيوت) |

One of `url`, `content` and `base64` is required — none of them, and the definition is refused.

```javascript
{ id: "pdf", type: "tools.convert", config: {
    from: "markdown", to: "pdf", content: "{{steps.write.output.text}}" } }
```

## لا يمكن لـ زوج لا يصل إلى الركض {#validated}

> **مُكشض على المصفوفة الحقيقية، على الحفظ**
>
> يوجد 244 زوج. التحويل الذي ليس واحداً منها مرفوض حيث تقرأ الرسالة، بدلاً من الفشل في الخطوة الخامسة من تنفيذ مقرر.

## المخرجات {#output}

```javascript
{{steps.pdf.output.base64}}       // binary targets
{{steps.pdf.output.content}}      // text targets
{{steps.pdf.output.mimeType}}
```

## جاري احفظه {#then}

لا شيء `base64` إلى [file.save](/ar/sdk/workflows/steps/file-save) خطـة `contentBase64` - كيف يصبح التقرير الذي أُعد PDF في دلل

- [file.save](/ar/sdk/workflows/steps/file-save): كتابة النتيجة.
- [api.tools.convert()](/ar/sdk/ref/tools/convert): المصفوفة.
- [خطوات سير العمل](/ar/sdk/workflows/steps): الأنواع الثلاثة والعشرون.

```python
{"id": "pdf", "type": "tools.convert", "config": {
    "from": "markdown", "to": "pdf", "content": "{{steps.write.output.text}}"}}
```

```python
"{{steps.pdf.output.base64}}"      # binary targets
"{{steps.pdf.output.content}}"     # text targets
"{{steps.pdf.output.mimeType}}"
```
