اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر
17 ساعات مضت, علياء يسرالدين said:

كيف يمكن تقسيم ملف pdf من خلال الكود الموجود او كود بديل.؟

pdf.rar 442.01 kB · 5 downloads

 

ما المقصود بتقسيم ملف pdf ؟ مالذي تريديه بالضبط ممكن شرح اكثر.

قام بنشر

تفضلوا هذا التعديل

Private Sub ÃãÑ0_Click()
Dim PDDoc As Acrobat.CAcroPDDoc, newPDF As Acrobat.CAcroPDDoc
Dim PDPage As Acrobat.CAcroPDPage
Dim thePDF As String, PNum As Long

'...

thePDF = CurrentProject.Path & "\اسم ملف pdf.pdf"

Set PDDoc = CreateObject("AcroExch.pdDoc")
Result = PDDoc.Open(thePDF)
If Not Result Then
   MsgBox "Can't open file: " & FileName
   Exit Sub
End If

'...
PNum = PDDoc.GetNumPages

For i = 0 To PNum - 1
    Set newPDF = CreateObject("AcroExch.pdDoc")
    newPDF.Create
    NewName = CurrentProject.Path & "\" & "Page_" & i & "_of_" & PNum & ".pdf"
    newPDF.InsertPages -1, PDDoc, i, 1, 0
    newPDF.Save 1, NewName
    newPDF.Close
    Set newPDF = Nothing
Next i
End Sub

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information