Repository navigation
docs(crates/panache-mcp): 建稿时说明如何沿用用户给的原纸 - #62
Merged
Merged
Conversation
背景:交付 PDF 时,客户端曾把原纸重新描成打印模板。 解决手段:在 paper_mode 的工具说明中明确原图、拉正与重建模板的适用意图。 收益:客户端在建稿时就能看到保留原纸的操作。
Reviewer's GuideAPIClarify the
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
SXP-Simon
marked this pull request as ready for review
November 27, 2026 07:45
|
Sorry @SXP-Simon, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 9 hours and 36 minutes by commenting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么改
用户给了一张有页眉和横线的作业纸,希望在这张纸上写字。一次实际使用中,客户端先取出页眉,在新的白色 A4 画布重画横线,再把这张新图传给
paper_path。最后虽然传了photo,工具保留下来的已经是重画的纸。这个草稿做什么
在创建稿件的
paper_mode字段解释怎么选输入文件:要写在给定纸上,就把原文件直接传给paper_path,默认照片模式会保留页眉、横线和拍摄角度。交付 PDF 也可以使用原照片。用户要求拉正时用flatten,要求空白模板时才另行重画。与 #57 可以分别审查。#57 解决的是服务端从哪里读取文件,这里解决的是读到原件之后该用哪一张图。
本机证据
view=paper读回,全部 RGB 像素与输入相同。成稿保留尺寸及标记,正文区域有新增笔迹,PDF 成功导出 1 页。这个试验证实提示所指的用法在现有引擎上可行。Summary by Sourcery
Enhancements: