octocorvus
ae1c0874ce
add option to toggle text layer visibility on debug builds
...
This is to ease debugging text layer on debug builds.
2023-03-24 19:45:49 -04:00
octocorvus
d445c48f3c
code style changes
...
- js: use double quotes consistently
- js: use strict equality operator everywhere
- js: end all statements with semi colon
- css: remove redundant unit of measures
2023-03-24 19:45:49 -04:00
octocorvus
69696ae2a9
use CSS transform to rotate text layer
...
Newer pdf.js versions don't automatically rotate text layer based on
viewport's rotation, instead they now set the value of the attribute
"data-main-rotation" to value of rotation in degrees. So, we now apply
CSS transformation to the text layer depending on the value of that
attribute.
2023-03-24 19:45:49 -04:00
octocorvus
2dea11799c
use --scale-factor variable to set text layer font size
...
Newer pdf.js versions requires this variable to be set equal to the
actual scale (zoom ratio), to properly set font size in text layer div.
2023-03-24 19:45:49 -04:00
octocorvus
f5a1452a2d
migrate away from deprecated APIs
...
- renderTextLayer: use textContentSource parameter instead of textContentStream
- renderTextLayer: pass a div for the container argument
2023-03-24 19:45:49 -04:00
octocorvus
f87941ea22
update pdf.js to v3.4.120
2023-03-24 19:45:49 -04:00
octocorvus
371c9509f6
update GitHub workflow to install npm dependencies
2023-03-24 19:45:49 -04:00
octocorvus
d01131d4c6
use dependabot for npm dependencies
2023-03-24 19:45:49 -04:00
octocorvus
2935bd4b27
migrate to pdfjs-dist npm package
2023-03-24 19:45:49 -04:00
Daniel Micay
30b8769ed2
update Gradle to 8.0.2
2023-03-10 13:40:06 -05:00
Daniel Micay
f6127ca0e0
update Android Gradle plugin to 7.4.2
2023-03-10 13:40:02 -05:00
octocorvus
0c6dcd35a7
Revert "Update pdf.js to v3.2.146"
...
This reverts commit e34c727ff7
.
Temporarily revert pdf.js update as versions equal to or greater
than this breaks our text layer rendering.
2023-02-27 10:56:06 -05:00
Daniel Micay
1e5988346c
update Gradle to 8.0.1
2023-02-24 15:37:12 -05:00
amalgame21
8d44658c80
Always shows previous and next page button in any Display size
2023-02-19 10:01:40 -05:00
Daniel Micay
6db24ef23d
update build tools version to 33.0.2
2023-02-11 05:36:29 -05:00
Daniel Micay
deba479a69
update AndroidX appcompat library to 1.6.1
2023-02-08 14:45:45 -05:00
Daniel Micay
7703b1a175
update Kotlin to 1.8.10
2023-02-04 07:06:08 -05:00
Daniel Micay
d0c95f5478
update copyright notice
2023-02-01 23:37:39 -05:00
Daniel Micay
f60cd27e65
update Kotlin Gradle plugin to 1.8.0
2023-02-01 22:00:06 -05:00
Daniel Micay
a25d0a4405
update Kotlin Gradle plugin to 1.8.0
2023-02-01 21:58:53 -05:00
Daniel Micay
424010af1c
use Gradle toolchain support
2023-02-01 21:43:25 -05:00
Daniel Micay
284fc306fc
update Material library to 1.8.0
2023-02-01 20:47:56 -05:00
Daniel Micay
d78e15b1b1
update Android Gradle plugin to 7.4.1
2023-02-01 20:32:07 -05:00
Xsims
c6fb2aceda
Add document name in toolbar
2023-01-27 02:08:50 -05:00
Daniel Micay
7f59118453
update AndroidX appcompat library to 1.6.0
2023-01-13 19:54:54 -05:00
Daniel Micay
5b46b4c80e
update Android Gradle plugin to 7.4.0
2023-01-13 19:54:29 -05:00
r3g_5z
e34c727ff7
Update pdf.js to v3.2.146
...
Signed-off-by: r3g_5z <june@girlboss.ceo>
2023-01-09 01:20:41 -05:00
Daniel Micay
3e60cca098
add Gradle verification metadata
2023-01-09 01:11:30 -05:00
Daniel Micay
48910db7c6
silence spurious getParcelable deprecation warning
2022-12-28 12:15:34 -05:00
Daniel Micay
fd510a3c19
avoid deprecated DialogFragment onActivityCreated
2022-12-28 12:08:22 -05:00
Daniel Micay
b8dcc33696
remove legacy roundIcon attribute
2022-12-25 10:38:50 -05:00
Daniel Micay
45a0952296
drop non-working dependabot workaround
2022-12-25 10:14:16 -05:00
Patryk Mis
aaa93a6f88
update build tools to 33.0.1
2022-12-20 04:31:08 -05:00
Daniel Micay
414d7fe3d1
update Gradle to 7.6
2022-12-09 08:48:17 -05:00
randomhydrosol
99c8c13fec
update pdfjs to v3.1.81
2022-12-05 03:31:24 -05:00
loryeam
1cf1c7ec28
horizontally and vertically center canvas and text layer
...
Also fixes an issue where text layer is not exactly on top of the canvas when
canvas width is less than screen width (which happens often in landscape mode or
when fully zoomed out)
2022-12-05 03:20:08 -05:00
octocorvus
ac4aa0bbb9
[webview] set minimum font size to 1px
...
This fixes an issue where some text layer divs (those with font
size < 8px) gets misaligned due to webview setting their font size
to 8px.
2022-12-04 18:32:28 -05:00
dependabot[bot]
abfb212011
Bump kotlin-gradle-plugin from 1.7.21 to 1.7.22
...
Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin ) from 1.7.21 to 1.7.22.
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.7.21...v1.7.22 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 17:17:43 -05:00
dependabot[bot]
a3ba77534c
Bump kotlin-gradle-plugin from 1.7.20 to 1.7.21
...
Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin ) from 1.7.20 to 1.7.21.
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 21:58:27 -05:00
Daniel Micay
ed3cf2c08f
remove no-op allowBackup
...
This was added to silence a now removed lint check.
2022-10-29 21:11:07 -04:00
smdyv
e1dd3db05a
Bump material from 1.6.1 to 1.7.0
2022-10-25 15:14:35 -04:00
Daniel Micay
22bd993a75
update to JDK 19
2022-10-19 19:27:19 -04:00
dependabot[bot]
a73caa5914
Bump gradle from 7.3.0 to 7.3.1
...
Bumps gradle from 7.3.0 to 7.3.1.
---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-13 17:07:42 -04:00
Daniel Micay
eead76ad86
increment version to 16
2022-10-04 12:31:21 -04:00
loryeam
fbd6c45c3f
fix a typo in viewer.js which can cause cache miss
2022-10-04 12:23:18 -04:00
Pratyush
8d0caf65a2
avoid NullPointerException
2022-10-03 00:21:53 -04:00
Pratyush
221e45cd52
handle NumberFormatException
caused by Integer.parseInt
2022-10-03 00:21:53 -04:00
Pratyush
ee87e43bcb
handle OutOfMemoryError | IllegalArgumentException
2022-10-03 00:21:47 -04:00
Pratyush
5fadf7f47d
replace deprecated api uses
2022-10-03 00:21:31 -04:00
Pratyush
7ff831769e
add missing NonNull annotation
2022-10-03 00:21:31 -04:00