(적어도 크롬 OS X 미리보기에, 적어도 크롬에서 작동하는 데 필요) Relative File Linking in PDF (Reportlab)
이것은 내가에서 작업 파일에 상대 링크를 가지고 어떻게 reportlab :
from reportlab.pdfgen import canvas
from reportlab.lib.units import inch
# Create a canvas and add a rectangle to it
c = canvas.Canvas("link_test.pdf")
c.translate(inch, 9 * inch)
c.rect(inch,inch,1*inch,1*inch, fill=1)
# example.xlsx is in the same directory as the pdf
c.linkURL(r'example.xlsx', (inch, inch, 2*inch, 2*inch), relative=1)
c.save()
Adobe Reader 11.0.10.32를 사용하고 있습니다. 직사각형을 클릭하면 몇 가지 경고가 표시되지만 "허용"및 "예"를 클릭하면 파일이 열립니다.
"아무도 대답하지 않았습니다." 음, 그 질문에 대한 대답이 있습니다. 당신은 그것이 효과가 있는지 아닌지 언급하지 않습니다. – Evert
내 질문이 업데이트되었습니다. – Xanderite