How does php convert a pdf file to a word file?

problem description

there is already a pdf file locally. How can I convert this file into an word document using php code?

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Oct.28,2021

PdfParser this is used to parse
PHPOffice/PHPWord this is used to convert
word to word when the image is dumped to xml, the picture can be encoded in base64, and these codes are placed in the < w:binData > tag. Replace these base64 codes with placeholders (${field30} in the following code) and then do regular processing to display them normally.

Xml 
<w:pict>  
<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">  
    <v:stroke joinstyle="miter"/>  
    <v:formulas>  
        <v:f eqn="if lineDrawn pixelLineWidth 0"/>  
        <v:f eqn="sum @0 1 0"/>  
        <v:f eqn="sum 0 0 @1"/>  
        <v:f eqn="prod @2 1 2"/>  
        <v:f eqn="prod @3 21600 pixelWidth"/>  
        <v:f eqn="prod @3 21600 pixelHeight"/>  
        <v:f eqn="sum @0 0 1"/>  
        <v:f eqn="prod @6 1 2"/>  
        <v:f eqn="prod @7 21600 pixelWidth"/>  
        <v:f eqn="sum @8 21600 0"/>  
        <v:f eqn="prod @7 21600 pixelHeight"/>  
        <v:f eqn="sum @10 21600 0"/>  
    </v:formulas>  
    <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>  
    <o:lock v:ext="edit" aspectratio="t"/>  
</v:shapetype>  
<w:binData w:name="wordml://03000001.png" xml:space="preserve">${field30}</w:binData>  
<v:shape id="_x0000_i1025" type="-sharp_x0000_t75" alt="" style="width:90.35pt;height:112.75pt">  
<v:imagedata src="wordml://03000001.png" o:href="http://127.0.0.1:8080/bfp/2016/12/30/00000000001.png"/>  
</v:shape>  
</w:pict>  

I hope it can be helpful to you

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e406e9-448ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e406e9-448ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?