Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
01afb7a
Expose a few functions from fpdf_text.h for getting text on a page.
billmoyers Aug 6, 2017
85ac0bb
Expose a few functions from fpdf_text.h for getting text on a page.
billmoyers Aug 6, 2017
c6d7875
Remove unnecessary new Rect class, just use RectF from Android.
billmoyers Dec 18, 2017
4d5241a
Add support to close the text pages.
Jul 16, 2018
e86d884
Merge pull request #2 from johngray1965/master
Jul 16, 2018
50e4975
fixed potential NPE
Nov 27, 2017
8c9ae37
Merge pull request fixing potential NPE when getting links
barteksc Dec 15, 2017
72c0244
Use pdfium built with c++_shared
barteksc Jun 28, 2018
5e48795
Update CHANGELOG
barteksc Jun 28, 2018
b04a523
Expose a few functions from fpdf_text.h for getting text on a page.
billmoyers Aug 6, 2017
ba23cac
Remove unnecessary new Rect class, just use RectF from Android.
billmoyers Dec 18, 2017
309366a
Add support to close the text pages.
Jul 16, 2018
a1c4031
When we open up search, give it focus.
Jan 20, 2019
66e6f06
Fixed an issue in the pdf password handling.
Mar 8, 2019
496bcd3
Add the proper icons for just about everything.
Apr 20, 2019
5fb995b
Upgraded crux, which fixed a user issue.
May 18, 2019
e3e5d67
When the user pauses make sure playOnFocus gets set to false.
Jul 20, 2019
8cad645
Merge branch 'master' of https://github.com/billmoyers/PdfiumAndroid
Nov 18, 2019
47b169e
Merge branch 'master' of https://github.com/billmoyers/PdfiumAndroid
Nov 18, 2019
51a99a9
Add basic wrapper for FPDF_SaveAsCopy.
Nov 25, 2019
248996a
Merge branch 'master' of https://github.com/billmoyers/PdfiumAndroid
May 10, 2020
108b5e6
Expose getFontSize and getPageCropBox.
May 10, 2020
f2e9218
Change getCropBox to use a double arrray in the native code.
May 25, 2020
305c202
Updated the version
May 25, 2020
c5e7859
Update versionName to "3.4.11"
Aug 15, 2020
8ff2fe6
Update gradle plugin
Oct 12, 2020
5b8c859
Set scanner's versionName to "1.0.26"
Oct 18, 2020
c67e6ad
Fixed Bookshare obfuscation issue.
Oct 25, 2020
00addf4
Update gradle build tools to 4.1.1
Nov 21, 2020
1b1c3cb
Get Voices from Legere's docConversion/AWS infrastructure.
Jan 30, 2021
a7779eb
Pdf Margins mostly working now.
Feb 19, 2021
0099cca
Fix the fact that Sharon is now called Sharona.
Mar 31, 2021
810f064
Moved the dependency injection to hilt.
Jun 5, 2021
0396028
Update to the new billing library for purchasing voices.
Jul 17, 2021
18f86ba
A pass at moving the reading service to media3 - WIP
Aug 4, 2023
f51e495
Static analysis clean up
Aug 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 58 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
buildscript {
repositories {
jcenter()
mavenCentral()
google()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath libs.gradle
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
// classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

apply plugin: 'com.android.library'
apply plugin: 'maven-publish'


ext {
bintrayRepo = 'maven'
Expand All @@ -38,38 +40,77 @@ ext {
}

android {
compileSdkVersion 26
namespace "com.shockwave.pdfium"
compileSdk 33

defaultConfig {
minSdkVersion 14
targetSdkVersion 26
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.9.0"
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
manifestPlaceholders = [crashlyticsEnabled: false]
}
qa {
initWith debug
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

sourceSets{
main {
jni.srcDirs = []
jniLibs.srcDir 'src/main/libs'
}
}
}

repositories {
google()
jcenter()
}
//
//repositories {
// google()
//// jcenter()
//}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v4:26.1.0'
implementation libs.androidx.legacy.support.v4
implementation libs.androidx.collection
}

subprojects {
tasks.withType(Javadoc).configureEach { enabled = false }
}


//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

publishing {
publications {
pdfium(MavenPublication) {
groupId 'com.agora_net'
artifactId 'pdfium'
version '1.1.725' // + getCommitCount()
artifact("$buildDir/outputs/aar/PdfiumAndroid-release.aar")
}
}
repositories {
maven {
// url "/var/www/maven/repository/"
url = "$buildDir/repo"
}
}
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
tasks.withType(Javadoc).configureEach {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Jun 06 19:49:00 CEST 2017
#Sun May 10 14:49:34 EDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
4 changes: 3 additions & 1 deletion src/main/java/com/shockwave/pdfium/PdfDocument.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.graphics.RectF;
import android.os.ParcelFileDescriptor;
import android.support.v4.util.ArrayMap;
import androidx.collection.ArrayMap;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -111,4 +111,6 @@ public RectF getBounds() {
public boolean hasPage(int index) {
return mNativePagesPtr.containsKey(index);
}

/*package*/ final Map<Integer, Long> mNativeTextPagesPtr = new ArrayMap<>();
}
5 changes: 5 additions & 0 deletions src/main/java/com/shockwave/pdfium/PdfWriteCallback.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.shockwave.pdfium;

public interface PdfWriteCallback {
int WriteBlock(byte[] data);
}
Loading