Skip to content

Commit 09bbc7e

Browse files
committed
Fix misplaced/mispositioned doc comments in PdfMerger
1 parent ee2f37d commit 09bbc7e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/src/main/java/dev/foliopdf/PdfMerger.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ public void save(String path) {
143143
FolioNative.mergeSave(handle.get(), path);
144144
}
145145

146-
/**
147-
* Renders the merged document to an in-memory byte array.
148-
*
149-
* @return the PDF bytes
150-
* @throws FolioException if the write fails
151-
*/
152146
/** Returns the number of pages in the merged document. */
153147
public int pageCount() {
154148
return FolioNative.mergePageCount(handle.get());
@@ -190,6 +184,12 @@ public PdfMerger cropPage(int index, double x1, double y1, double x2, double y2)
190184
return this;
191185
}
192186

187+
/**
188+
* Renders the merged document to an in-memory byte array.
189+
*
190+
* @return the PDF bytes
191+
* @throws FolioException if the write fails
192+
*/
193193
public byte[] writeToBuffer() {
194194
long buf = FolioNative.mergeWriteToBuffer(handle.get());
195195
if (buf == 0) throw new FolioException("Failed to write merged PDF to buffer: " + FolioNative.lastError());

0 commit comments

Comments
 (0)