• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wuDportgas
V2EX  ›  程序员

求助,如何将 pdf 根据一级标题进行切分

  •  
  •   wuDportgas · Aug 23, 2024 · 1904 views
    This topic created in 629 days ago, the information mentioned may be changed or developed.

    pdf 的格式很多很杂,有的标题是居中的,有的是左对齐的,如何将这些繁杂的 pdf 进行切割? (尝试过使用 itext5 ,但是对左对齐的标题格式不太好处理。)

    6 replies    2024-08-26 16:34:45 +08:00
    functionABC
        1
    functionABC  
       Aug 23, 2024
    要切割成啥样子呀?
    justNoBody
        2
    justNoBody  
       Aug 23, 2024
    能不能发一个具体的材料,然后你想办法脱敏一下,我挺感兴趣的。
    SoloKing
        3
    SoloKing  
       Aug 23, 2024 via Android
    借楼,我也有需求,PDF 或者 Word 的内容提取出来之后,按章节段落切分,有什么好的方法吗?
    mythabc
        4
    mythabc  
       Aug 23, 2024
    1. 版式识别
    2. 多模态大模型
    wuDportgas
        5
    wuDportgas  
    OP
       Aug 26, 2024
    @functionABC 根据一级标题去做切分
    wuDportgas
        6
    wuDportgas  
    OP
       Aug 26, 2024
    @mythabc ocr 速度比较慢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   915 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:46 · PVG 04:46 · LAX 13:46 · JFK 16:46
    ♥ Do have faith in what you're doing.