PDFPerch All tools

P2P transfer

Send a PDF directly browser to browser

Cloudflare only exchanges WebRTC signaling messages. File bytes move through the encrypted data channel when the connection succeeds.

使用说明

01

发送方选择文件

用户 A 点击左侧上传 PDF。页面会自动创建一个 P2P 房间,并生成接收方专属链接。

02

复制链接给朋友

把生成的链接发给用户 B。B 打开链接后会自动进入接收模式,等待 WebRTC 握手。

03

浏览器直连传输

连接成功后,文件通过加密 DataChannel 分块传输。接收完成后,B 的浏览器会自动下载文件。

注意:Cloudflare Worker 只交换 SDP / ICE 信令,不承载 PDF 文件流量。部分公司网络、校园网或严格 NAT 可能无法直连;这种情况通常需要 TURN 中继服务器。

P2P transfer uses Cloudflare only for SDP/ICE signaling. File bytes move through WebRTC DataChannel; strict corporate NAT may require a TURN server, which would relay encrypted traffic.

No PDF processing server receives the file stream.

User guide

How to use P2P PDF Share

Transfer a selected file through an encrypted WebRTC data channel after a lightweight signaling exchange.

  1. 1

    Sender selects a file and creates a room.

  2. 2

    Copy the room link to the recipient while keeping the sender tab open.

  3. 3

    Recipient opens the link and both sides complete WebRTC negotiation.

  4. 4

    Wait for transfer completion and verify the downloaded file.

Best for

  • Direct device-to-device transfers
  • Large files when both users are online

Important limitation

WebRTC may use a TURN relay when direct NAT traversal fails; this needs signaling infrastructure and the sender must stay connected.

Frequently asked questions

Does a server carry the file?

Usually the data channel is peer-to-peer, but relay use depends on network conditions and TURN configuration.

Can the sender close the page?

No. Both browsers must remain open until transfer completes.

PDFPerch processes files locally unless this guide explicitly identifies a cloud-dependent feature. Always keep an original copy and verify critical output before submission, printing, signing, or accounting use.